Date: Sun, 14 Mar 2004 15:01:59 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: "CBuH." <479001601@mail.ru> Cc: freebsd-questions@freebsd.org Subject: Re: pakages questione Message-ID: <20040314150159.GE9984@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <200403141320.19156.479001601@mail.ru> References: <200403141320.19156.479001601@mail.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--10jrOL3x2xqLmOsH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 14, 2004 at 01:20:18PM +0300, CBuH. wrote: > have a question: suppose I've pkg_add'ed a pkg-B-1.1 on which a pkg-A dep= ends,=20 > later I've pkg_add'ed the next v. of pkg-B-1.2.... now `pkg_delete pkg-B-= 1.1`=20 > says that pkg-A depends on it.... >=20 > May I use ``force'' to deinstall oldest version... or I must keep all the= tree=20 > for old dependant pkgs to work fine? Essentially yes. However, you should 'pkg_delete -f' the old version of pkg-B first, and then pkg_add the new one. (Mostly because the different versions of pkg-B will have a large number of files in common, and pkg_delete will delete them even if they really belong to the newer version.) You'll still find that pkg-A says it depends on the older version of pkg-B -- you can either ignore this, as it has no effect on the functionality of pkg-A, or you can delete and re-install pkg-A after you do pkg-B, or you can go into /var/db/pkg/pkg-A/ and edit the +REQUIRED_BY file to correct the version numbers. Or you can install portupgrade, in which case all you need to do is copy the pkg-B-1.2.tgz file to /usr/ports/packages/All and then run the command: # portupgrade -f -P pkg-B and all of the necessary deleting and re-installing and fiddling with the /var/db/pkg/ files will be done for you. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --10jrOL3x2xqLmOsH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAVHPndtESqEQa7a0RAtSNAJ9fwA3IunTwpU9TM9TJvhu9iZgOMACeNNJz NuuIsg6nIwiCqouoUSZ6ryg= =ie8l -----END PGP SIGNATURE----- --10jrOL3x2xqLmOsH--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040314150159.GE9984>