Upgrading the Installed package

Hans Lambermont hans at lambermont.dyndns.org
Thu Feb 7 06:32:49 PST 2008


Jeremy Chadwick wrote:
...
> The way you upgrade a port/package on a FreeBSD machine is that you
> pkg_delete (deinstall) the old one before pkg_add'ing (installing) the
> new one.  All package management systems on every platform I've used
> (Solaris, Linux, and FreeBSD) behave this way.

The dreadful RPM system does not work this way. It leaves the files that
get no update untouched, adds new stuff next to them and then removes
the obsoleted files. rpm -Uvv shows the upgrade behaviour :

    * Run %pre of new package (2)
    * Install new files
    * Run %post of new package (2)
    * Run %preun of old package (1)
    * Delete any old files not overwritten by newer ones
    * Run %postun of old package (1)

> It would help if you could explain why you cannot afford to pkg_delete
> your 1.0 package before installing 1.1.

This is the interesting question ;-)

regards,
   Hans Lambermont


More information about the freebsd-ports mailing list