Date: Tue, 15 Apr 2008 17:59:37 -0600 From: Chad Perrin <perrin@apotheon.com> To: freebsd-questions@freebsd.org Subject: Re: determining what's in the base system Message-ID: <20080415235937.GB79279@demeter.hydra> In-Reply-To: <200804160131.23711.fbsd.questions@rachie.is-a-geek.net> References: <20080415231450.GF78906@demeter.hydra> <200804160131.23711.fbsd.questions@rachie.is-a-geek.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Wed, Apr 16, 2008 at 01:31:23AM +0200, Mel wrote: > On Wednesday 16 April 2008 01:14:50 Chad Perrin wrote: > > > Assume you have a FreeBSD system installed that has been running for at > > least a year, with a bunch of graphical desktop and productivity software > > installed, and have both installed and uninstalled a lot of software over > > that time. Now imagine that you want to know whether a given utility was > > 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 the > > utility is present)? > > > If you didn't change LOCALBASE/PREFIX during installation, anything > below /usr/local belongs to ports. Only exception would be kernel modules > that need to be loaded before /usr is mounted (like graphic card drivers). > > See hier(7). I definitely should have thought of that. Thanks for the wake-up call. > > Also, grep -v '^@' /var/db/pkg/*/+CONTENTS lists all files installed by ports. 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. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Baltasar Gracian: "A wise man gets more from his enemies than a fool from his friends." [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkgFQWkACgkQ9mn/Pj01uKVY8gCg4vsc4jdcuNTgp+9FvzjWkAcu /QkAoKuhQNA6FS49JhZkkmRJNtHTdd+a =gnzR -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080415235937.GB79279>
