From owner-freebsd-questions@FreeBSD.ORG Fri Apr 23 08:45:15 2004 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 E9A2516A4CE for ; Fri, 23 Apr 2004 08:45:15 -0700 (PDT) Received: from server.rucus.ru.ac.za (server.rucus.ru.ac.za [146.231.115.1]) by mx1.FreeBSD.org (Postfix) with SMTP id D3C9743D2D for ; Fri, 23 Apr 2004 08:45:07 -0700 (PDT) (envelope-from oxo@rucus.ru.ac.za) Received: (qmail 54901 invoked from network); 23 Apr 2004 15:45:05 -0000 Received: from shell-em0.rucus.ru.ac.za (oxo@10.0.0.1) by server-em0.rucus.ru.ac.za with QMQP; 23 Apr 2004 15:45:05 -0000 Date: Fri, 23 Apr 2004 17:45:05 +0200 From: John Oxley To: Chiang Seng Chang Message-ID: <20040423154505.GA8710@rucus.ru.ac.za> References: <002301c42946$4207bf30$2804320a@cchang> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002301c42946$4207bf30$2804320a@cchang> User-Agent: Mutt/1.4.2.1i cc: questions@freebsd.org Subject: Re: upgrade a port 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, 23 Apr 2004 15:45:16 -0000 On Fri 2004-04-23 (11:18), Chiang Seng Chang wrote: > currently i have openldap client 2.1 installed. > > $ pkg_glob -r openldap-client-2.1.30 > openldap-client-2.1.30 > kdeutils-3.2.2 > kdebase-3.2.2 > kdenetwork-3.2.2 > kdegraphics-3.2.2 > kdegames-3.2.2 > kdelibs-3.2.2 > gnupg-1.2.4_1 > samba-3.0.3.p2_1,1 > > if i want to use version 2.2, do i just simply: > > > pkg_deinstall openldap-client-2.1.30 > > portinstall net/openldap22-client > > i suspect step 1 would fail because there are dependency, or switching them > around would work ? as in: > > $ portinstall net/openldap22-client > $ pkg_deinstall openldap-client-2.1.30 A better idea would be portupgrade -r openldap22-client The -r recursively upgrade all packages that are dependent on openldap22-client. if you specify -rf it will force a recompile of all ports that are dependent on it. Much better idea, although it does take longer. -Ox -- /~\ The ASCII ASCII stupid question, get a EBCDIC ANSI. \ / Ribbon Campaign John Oxley X Against HTML http://oxo.rucus.net/ / \ Email! oxo rucus.ru.ac.za "Personally, I'd rather pay for my freedom than live in a bitmapped, pop-up-happy dungeon like NT." -- Thomas Scoville