portupgrade postgresql-7.3.4_1

Lee Harr missive at hotmail.com
Sun May 16 11:59:47 PDT 2004


>Trying to do the portupgrade of postgresql on my FreeBSD 5.2.1 box. When
>I try a 'pkg_delete postgresql-7.3.4_1', it has dependents and says
>cannot be deinstalled. How do I handle this port upgrade?
>
>esmtp# pkg_delete postgresql-7.3.4_1
>pkg_delete: package 'postgresql-7.3.4_1' is required by these other
>packages
>and may not be deinstalled:
>nagios-1.1_3
>nagios-plugins-1.3.1
>phppgadmin-3.0.1
>postfix-2.0.16,1
>


Have you ever used portupgrade?
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html
(section 4.5.5 discusses portupgrade)

That is a tool in ports (sysutils/portupgrade) which will do this sort
of thing automatically for you.

Basically what it does is pkg_delete -f  (to force the deinstallation)
then install the new version. (It also saves a copy of the old pkg
just in case something goes wrong with the new install, but if this
postgres database is important to you, be certain to have good
backups before you do any sort of upgrade)

Good luck.

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



More information about the freebsd-ports mailing list