From owner-freebsd-ports@FreeBSD.ORG Sun May 16 11:59:47 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2642516A4CE for ; Sun, 16 May 2004 11:59:47 -0700 (PDT) Received: from hotmail.com (bay2-f11.bay2.hotmail.com [65.54.247.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9850043D48 for ; Sun, 16 May 2004 11:59:46 -0700 (PDT) (envelope-from missive@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 16 May 2004 11:59:46 -0700 Received: from 208.186.54.187 by by2fd.bay2.hotmail.msn.com with HTTP; Sun, 16 May 2004 18:59:46 GMT X-Originating-IP: [208.186.54.187] X-Originating-Email: [missive@hotmail.com] X-Sender: missive@hotmail.com From: "Lee Harr" To: freebsd-ports@freebsd.org Date: Sun, 16 May 2004 18:59:46 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 16 May 2004 18:59:46.0488 (UTC) FILETIME=[F4A5F380:01C43B77] Subject: Re: portupgrade postgresql-7.3.4_1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 May 2004 18:59:47 -0000 >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