From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 16:11:13 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 BC10E16A4CE for ; Sun, 30 Nov 2003 16:11:13 -0800 (PST) Received: from mail.blarg.net (zoot.blarg.net [206.124.128.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7018243FDF for ; Sun, 30 Nov 2003 16:11:12 -0800 (PST) (envelope-from abowhill@blarg.net) Received: from kosmos.my.net (12-230-212-176.client.attbi.com [12.230.212.176]) by mail.blarg.net (Postfix) with ESMTP id 91CEB342D6 for ; Sun, 30 Nov 2003 16:10:28 -0800 (PST) Received: from kosmos.my.net (localhost [127.0.0.1]) by kosmos.my.net (8.12.10/8.12.10) with ESMTP id hAUCC6j1088346 for ; Sun, 30 Nov 2003 04:12:07 -0800 (PST) (envelope-from kosmos@kosmos.my.net) Received: (from kosmos@localhost) by kosmos.my.net (8.12.10/8.12.10/Submit) id hAUCC63k088345 for freebsd-questions@freebsd.org; Sun, 30 Nov 2003 04:12:06 -0800 (PST) (envelope-from kosmos) Date: Sun, 30 Nov 2003 04:12:01 -0800 From: Allan Bowhill To: freebsd-questions@freebsd.org Message-ID: <20031130121201.GA88204@kosmos.my.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <20031130092448.8A82D42BF1@server1.messagingengine.com> <20031130075229.GA87221@kosmos.my.net> <200311302137.19635.freebsd-questions@webteckies.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200311302137.19635.freebsd-questions@webteckies.org> User-Agent: Mutt/1.4.1i X-URL: http://www.blarg.net/~abowhill/ Subject: Re: How to determine which distribution sets were installed 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: Mon, 01 Dec 2003 00:11:14 -0000 On 0, Melvyn Sopacua wrote: :On Sunday 30 November 2003 08:52, Allan Bowhill wrote: : :> On 0, Paul van Berlo wrote: :> :Hello, :> : :> :is there an easy way to determine which distribution sets were installed :> :during the FreeBSD installation and after that? I inherited a server and :> :want to make sure what is and is not installed. Of course I can do all of :> :this manually, but I was hoping FreeBSD keeps a log or something :> :somewhere. :> :> I am not %100 sure, but I think you might have to do it manually. I :> don't think FreeBSD keeps records of what was originally chosen :> in /stand/sysinstall for distribution sets on a first-time installation. : :Right - because it doesn't make sence to do so. :If you choose 'developer' during the 'standard installation' but later install :the XFree86 port, you essentially now have an 'X-Developer' distribution set. : :In a well-maintained system, /etc/make.conf should reflect any alterations to :the base installation and the rest can be found in /var/db/pkg/*. Well, there are definitely _options_ in /etc/make.conf that I would look at, since really the job of that file is to set defaults for make, and associated functions to build software. And don't forget to look for things that are actually activated when the system runs. /etc/rc.conf(.local), /usr/local/etc/rc.d, and /etc/crontab and cron files in user accounts, too. Those can be a problem. One thing I can't quite remember is if stuff that goes to console during /stand/sysinstall installation actually gets logged in /var/log/messages*. I don't think it does, but it wouldn't hurt to look at the logfiles to see what kind of installation activity went on recently. And then there may be some boot time options, like LKMs that get configured in one of the /boot files, I think /boot/defaults/loader.conf and /boot/loader.conf would be places to look. Obviously, if /usr/obj exists with craploads .o files, it is evidence an attempt has been made to rebuild the system from sources, and if cvsup records can be found, then the sources have been updated using that method. Then there are kernel modifications which can be found in /sys/i386/conf. There are other places to look. /usr/X11R6/bin is one place. Some people don't use ports or packages when they install X. They just get the sources outside the ports/packages system, and then build and install X on the box directly. It never gets recorded in /var/db/pkg. Same for other software. I suspect what you do depends on how paranoid you are about the system. Personally, I would back it all up, zap the filesystem, and rebuild from scratch with -stable. That would take less time and energy than checking all the nooks and crannies. -- Allan Bowhill abowhill@blarg.net George Orwell was an optimist.