From owner-freebsd-questions@FreeBSD.ORG Wed Oct 1 06:12:38 2003 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 D164816A4B3 for ; Wed, 1 Oct 2003 06:12:38 -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 E940C43FE9 for ; Wed, 1 Oct 2003 06:12:34 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h91DCMfs069791 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 1 Oct 2003 14:12:26 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id h91DCM49069784; Wed, 1 Oct 2003 14:12:22 +0100 (BST) (envelope-from matthew) Date: Wed, 1 Oct 2003 14:12:22 +0100 From: Matthew Seaman To: Darren Phillips Message-ID: <20031001131222.GA11691@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Darren Phillips , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Newbie question - package versions in FreeBSD 5.1 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: Wed, 01 Oct 2003 13:12:39 -0000 --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 01, 2003 at 01:53:35PM +0100, Darren Phillips wrote: > Sorry for the dumb-sounding question - is having multiple package version= s installed in 5.1 going to burn me ? >=20 > I (think I) understand the install process but not the consequences. How = do all the versions coexist ? > eg. install another linux base package. Most of the time, this appears to work, but it's not at all desirable. Generally, if you install a more recent version of a package you've already installed, then the files from the newer package just overwrite the files from the older one. According to pkg_info(1) you'll have both packages installed, but that's not really the case. The best way to sort out this sort of problem is to pkg_delete both versions of the port, and then re-install the version that you actually want. In order to avoid getting into this situation in the first place, use portupgrade(1) and friends to manage your installed ports. While that's a good way of handling multiple installations of the same port (even if they are different revisions), it doesn't really help when you have two different ports that both lay claim to the same files. While port maintainers go to great lengths to make their ports co-exist happily with any other ports, sometimes it just isn't possible. There is a (relatively) new 'CONFLICTS' variable in the port Makefiles which should go a long way towards preventing such problems. Unfortunately, use of the CONFLICTS variable is nowhere near ubiquitous yet. In the specific case of the various linux_base ports you ask about: /usr/ports/emulators:% foreach m (linux_base*/Makefile) foreach? echo $m foreach? make -f $m -V CONFLICTS foreach? end linux_base-6/Makefile linux_base-* linux_base-8/Makefile linux_base-* linux_base-debian/Makefile linux_base-* linux_base/Makefile linux_base-* ie. all of the different linux_base ports conflict with each other. So the short answer to your question is "yes". 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 --17pEHd4RhPHOinZp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/etK2dtESqEQa7a0RAkegAJ9uR3L4B5eRoA7Za67KhIPLR9Zj1wCfXVKI Lj6Bx6bYwxAfIrSOZk2FkAs= =L98n -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp--