From owner-freebsd-questions@FreeBSD.ORG Sun Mar 14 07:02:06 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 450DD16A4CE for ; Sun, 14 Mar 2004 07:02:06 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FF8843D46 for ; Sun, 14 Mar 2004 07:02:05 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i2EF1xTw024676 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 14 Mar 2004 15:01:59 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i2EF1xOk024675; Sun, 14 Mar 2004 15:01:59 GMT (envelope-from matthew) Date: Sun, 14 Mar 2004 15:01:59 +0000 From: Matthew Seaman To: "CBuH." <479001601@mail.ru> Message-ID: <20040314150159.GE9984@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , "CBuH." <479001601@mail.ru>, freebsd-questions@freebsd.org References: <200403141320.19156.479001601@mail.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="10jrOL3x2xqLmOsH" Content-Disposition: inline In-Reply-To: <200403141320.19156.479001601@mail.ru> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040304, clamav-milter version 0.67j cc: freebsd-questions@freebsd.org Subject: Re: pakages questione 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: Sun, 14 Mar 2004 15:02:06 -0000 --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--