From owner-freebsd-questions@FreeBSD.ORG Tue Apr 15 23:31:26 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 5825D1065670 for ; Tue, 15 Apr 2008 23:31:26 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id EBDCA8FC13 for ; Tue, 15 Apr 2008 23:31:25 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 0B0121CC91; Tue, 15 Apr 2008 15:31:24 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Wed, 16 Apr 2008 01:31:23 +0200 User-Agent: KMail/1.9.7 References: <20080415231450.GF78906@demeter.hydra> In-Reply-To: <20080415231450.GF78906@demeter.hydra> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804160131.23711.fbsd.questions@rachie.is-a-geek.net> Cc: Chad Perrin 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:31:26 -0000 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). Also, grep -v '^@' /var/db/pkg/*/+CONTENTS lists all files installed by ports. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.