On Fri, Oct 15, 2004, Alexander Belck wrote:

> To prepare my waries :-)) How do I upgrade a production instalation of OpenPKG
> from ver 2.1 to 2.2.
> [...]
> How should I proceed to get the new 2.2 release with all the same build option
> running ?

The same way between 2.0 and 2.1: you upgrade the bootstrap package
"openpkg" and then all other packages. My usual upgrade procedure is:

$ w3m http://cvs.openpkg.org/openpkg-re/releasenotes.txt
$ <prefix>/bin/openpkg rpm --rebuild \
  ftp://ftp.openpkg.org/release/N.M/SRC/openpkg-N.M.0-N.M.0.src.rpm
$ <prefix>/bin/openpkg rpm -Uvh \
  <prefix>/RPM/PKG/openpkg-N.M.0-N.M.0.*.rpm
$ <prefix>/bin/openpkg build -Ua >upgrade.sh
$ vi upgrade.sh
$ sh upgrade.sh

Using "openpkg build" preserves your old build options plus/minus the
ones which have changed names (if any). So, although the above works
95% of time without problems and fully automatic, because of slight
differences in available options between releases, the above reading of
the release notes and manual adjustment of the upgrade.sh procedure in
practice is strongly advised. In release notes you will find what was
changed and this has to be reflected usually with a few manually added
"--with" or "--without" options in upgrade.sh

> Is it possible to have it at the same /opkg "root" without an spare Host with
> same underlaying OS (and same hardware??) to build the new pakages ?

I'm not sure whether I understand you correctly. But if /opkg is
your production environment you usually cannot build a set of new
packages for /opkg with it without changing this OpenPKG instance during
building. The reason is that you have to install dependency packages
during building. But you can create a chroot(2) environment and create a
building-only /opkg there.

> Temporarly, is it possible to instruct `openpkg build <package>`
> to get the lates <package> from CURRENT Release ?

I think you at least have to specify the path to the CURRENT
00INDEX.rdf.bz2 file manually unless your "openpkg" bootstrap package is
a CURRENT one.
                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to