From owner-freebsd-questions@FreeBSD.ORG Tue Apr 15 23:59:39 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09F941065671 for ; Tue, 15 Apr 2008 23:59:39 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from outbound-mail-147.bluehost.com (outbound-mail-147.bluehost.com [67.222.38.37]) by mx1.freebsd.org (Postfix) with SMTP id D22BD8FC2A for ; Tue, 15 Apr 2008 23:59:38 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: (qmail 31784 invoked by uid 0); 15 Apr 2008 23:59:36 -0000 Received: from unknown (HELO box183.bluehost.com) (69.89.25.183) by outboundproxy5.bluehost.com with SMTP; 15 Apr 2008 23:59:36 -0000 Received: from c-67-165-217-249.hsd1.co.comcast.net ([67.165.217.249] helo=demeter.hydra) by box183.bluehost.com with esmtpa (Exim 4.68) (envelope-from ) id 1Jlv3o-0006bo-KQ for freebsd-questions@freebsd.org; Tue, 15 Apr 2008 17:59:36 -0600 Received: by demeter.hydra (sSMTP sendmail emulation); Tue, 15 Apr 2008 17:59:37 -0600 Date: Tue, 15 Apr 2008 17:59:37 -0600 From: Chad Perrin To: freebsd-questions@freebsd.org Message-ID: <20080415235937.GB79279@demeter.hydra> Mail-Followup-To: freebsd-questions@freebsd.org References: <20080415231450.GF78906@demeter.hydra> <200804160131.23711.fbsd.questions@rachie.is-a-geek.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/WwmFnJnmDyWGHa4" Content-Disposition: inline In-Reply-To: <200804160131.23711.fbsd.questions@rachie.is-a-geek.net> User-Agent: Mutt/1.4.2.3i X-Identified-User: {737:box183.bluehost.com:apotheon:apotheon.com} {sentby:smtp auth 67.165.217.249 authed with perrin@apotheon.com} Subject: Re: determining what's in the base system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2008 23:59:39 -0000 --/WwmFnJnmDyWGHa4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 16, 2008 at 01:31:23AM +0200, Mel wrote: > On Wednesday 16 April 2008 01:14:50 Chad Perrin wrote: >=20 > > Assume you have a FreeBSD system installed that has been running for at > > least a year, with a bunch of graphical desktop and productivity softwa= re > > installed, and have both installed and uninstalled a lot of software ov= er > > that time. Now imagine that you want to know whether a given utility w= as > > something that came with the base system or was installed by some port = or > > package later on. What's the easiest way to do that (preferably without > > installing the FreeBSD base system on a computer and checking whether t= he > > utility is present)? >=20 >=20 > If you didn't change LOCALBASE/PREFIX during installation, anything=20 > below /usr/local belongs to ports. Only exception would be kernel modules= =20 > that need to be loaded before /usr is mounted (like graphic card drivers). >=20 > See hier(7). I definitely should have thought of that. Thanks for the wake-up call. >=20 > Also, grep -v '^@' /var/db/pkg/*/+CONTENTS lists all files installed by p= orts. That's more the sort of answer I was expecting, but seems less easily employed than just using `which` to determine whether something's located under /usr/local. --=20 CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Baltasar Gracian: "A wise man gets more from his enemies than a fool from his friends." --/WwmFnJnmDyWGHa4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkgFQWkACgkQ9mn/Pj01uKVY8gCg4vsc4jdcuNTgp+9FvzjWkAcu /QkAoKuhQNA6FS49JhZkkmRJNtHTdd+a =gnzR -----END PGP SIGNATURE----- --/WwmFnJnmDyWGHa4--