From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 02:36:00 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 4326016A4CE for ; Sun, 30 Nov 2003 02:36:00 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id A65D643F85 for ; Sun, 30 Nov 2003 02:35:57 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) hAUAZIKU001917 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 30 Nov 2003 10:35:48 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id hAUAZFEn001914; Sun, 30 Nov 2003 10:35:15 GMT (envelope-from matthew) Date: Sun, 30 Nov 2003 10:35:14 +0000 From: Matthew Seaman To: Paul van Berlo Message-ID: <20031130103514.GD885@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Paul van Berlo , freebsd-questions@freebsd.org References: <20031130092448.8A82D42BF1@server1.messagingengine.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5gxpn/Q6ypwruk0T" Content-Disposition: inline In-Reply-To: <20031130092448.8A82D42BF1@server1.messagingengine.com> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,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: 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: Sun, 30 Nov 2003 10:36:00 -0000 --5gxpn/Q6ypwruk0T Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 30, 2003 at 10:24:48AM +0100, Paul van Berlo wrote: > 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. Well, you can assume that the base system was installed or you wouldn't have a machine to run. The other stuff you can install at that stage from sysinstall(8) is basically the contents of /usr/src or /usr/ports -- so if there's stuff under those directories then you can definitely say that *more* than base was installed. However, don't assume that everything necessarily was installed through sysinstall(8) -- it's common to maintain the system sources and the ports tree using cvsup(1): see the contents of /usr/sup for a log of what has been installed. Look at the timestamps on the files under /usr/obj to see when the system was last rebuilt. Or use the 'uname' command to show when the running kernel was compiled: % uname -v The third big chunk of stuff that you can install from sysinstall(8) are pkgs -- although these are generally installed either using the pkg_* tools from a running system, or (preferably) by compiling the port. Either way, you can get a listing of what's installed by: % pkg_info -Ia (or even just 'ls -la /var/db/pkg'). See also pkg_version(1) for comparing the version numbers of what's installed with what's available in your ports tree. 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 --5gxpn/Q6ypwruk0T Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/ycfidtESqEQa7a0RAha3AJoDQcuqv2p0Il/bzA7RyKjrKhXTFgCeJMCM QgklCU/OA5mE0K3t1ik4Qkg= =5Oh/ -----END PGP SIGNATURE----- --5gxpn/Q6ypwruk0T--