From owner-freebsd-questions@FreeBSD.ORG Fri Oct 24 10:54:11 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F2F616A4B3 for ; Fri, 24 Oct 2003 10:54:11 -0700 (PDT) Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EE1F43F75 for ; Fri, 24 Oct 2003 10:54:10 -0700 (PDT) (envelope-from kstewart@owt.com) Received: from topaz-out (owt-207-41-94-233.owt.com [207.41.94.233]) by rutger.owt.com (8.11.6p2/8.9.3) with ESMTP id h9OHs4u10106; Fri, 24 Oct 2003 10:54:04 -0700 From: Kent Stewart To: jesse@wingnet.net, freebsd-questions@freebsd.org Date: Fri, 24 Oct 2003 10:54:04 -0700 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200310241054.04392.kstewart@owt.com> Subject: Re: portupgrade auto deinstall+reinstall? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2003 17:54:11 -0000 On Friday 24 October 2003 10:41 am, Jesse Guardiani wrote: > Howdy list, > > Sorry if this is an obvious question, but I didn't > find anything in the portupgrade manpage. > > I'm in the process of upgrading the ports on my 5.1-RELEASE > laptop, and I just executed the following command: > > portupgrade -R 'grip*' > > And it's giving me the following message: > > ---------------------------------------------- > ===> Checking if x11/libgnome already installed > ===> An older version of x11/libgnome is already installed > (libgnome-2.2.0.1) You may wish to ``make deinstall'' and install this port > again by ``make reinstall'' to upgrade it properly. > If you really wish to overwrite the old port of x11/libgnome > without deleting it first, set the variable "FORCE_PKG_REGISTER" > in your environment or the "make install" command line. > *** Error code 1 > > Stop in /usr/ports/x11/libgnome. > *** Error code 1 > ------------------------------------------------ > > Now, I know how to get around this manually: > > pkg_delete -f 'libgnome-*' > > And then rerun `portupgrade -R 'grip*'`. > > However, is there a way to automate this process? It's > happened three times already on this one port, and I'm > getting a bit annoyed. I was hoping it would be done > the first time I came back from lunch. :) > > Thanks! You can use -Rf but that will update everything that is a dependancy for grip. What you did is probably much faster than that :). That includes the time you spent eating lunch. I come from the programming world and to update a library and not update the codes that use it really bothers me. I do what you did but I keep thinking about all of the problems that I could be causing. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html