Date: Sun, 16 May 2004 18:59:46 +0000 From: "Lee Harr" <missive@hotmail.com> To: freebsd-ports@freebsd.org Subject: Re: portupgrade postgresql-7.3.4_1 Message-ID: <BAY2-F11ix4A2DreBBs000197f3@hotmail.com>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY2-F11ix4A2DreBBs000197f3>