Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jul 2002 00:16:11 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        karl agee <kdagee@attglobal.net>
Cc:        freebsd-questions <FreeBSD-Questions@FreeBSD.ORG>
Subject:   Re: removing old versions of packages
Message-ID:  <20020727231611.GF1370@happy-idiot-talk.infracaninophi>
In-Reply-To: <1027803115.317.8.camel@enterprise.workgroup>
References:  <1027803115.317.8.camel@enterprise.workgroup>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020727231611.GF1370>