From owner-freebsd-questions Sat Jul 27 16:16:27 2002 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 CF4F837B400 for ; Sat, 27 Jul 2002 16:16:23 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7933D43E31 for ; Sat, 27 Jul 2002 16:16:22 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g6RNGHdG002735; Sun, 28 Jul 2002 00:16:17 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g6RNGBgS002734; Sun, 28 Jul 2002 00:16:11 +0100 (BST) Date: Sun, 28 Jul 2002 00:16:11 +0100 From: Matthew Seaman To: karl agee Cc: freebsd-questions Subject: Re: removing old versions of packages Message-ID: <20020727231611.GF1370@happy-idiot-talk.infracaninophi> References: <1027803115.317.8.camel@enterprise.workgroup> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1027803115.317.8.camel@enterprise.workgroup> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jul 27, 2002 at 02:22:49PM -0700, karl agee wrote: > let's say I have two versions of a package, like acrobat reader > installed. Can I simply use pkg_delete to remove the old one w/o > affecting the new one???? With the acrobat4 and acrobat5 ports, yes you can. That's because they install into completely separate heirarchies under /usr/local/Acrobat4 and /usr/local/Acrobat5 respectively. However, with other package combinations, like net-snmp and net-snmp4, (or perl and p5-CGI.pm) you'll find that some files from one package will overwrite files from the other one. That can mean that the first installed package will stop working, but not always. If you pkg_delete the first installed packge, it will kill the other package as well. The trick is to delete both and reinstall just the one you want. You can use 'pkg_info -g' and 'pkg_info -W' to diagnose this sort of thing: happy-idiot-talk:/usr/ports:# pkg_info -W /usr/local/lib/perl5/5.6.1/man/man3/CGI.3.gz pkg_info: both p5-CGI.pm-2.753 and perl-5.6.1_7 claim to have installed /usr/local/lib/perl5/5.6.1/man/man3/CGI.3.gz /usr/local/lib/perl5/5.6.1/man/man3/CGI.3.gz was installed by package p5-CGI.pm-2.753 Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message