Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Nov 2003 10:35:14 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Paul van Berlo <pvanberlo@fastmail.fm>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to determine which distribution sets were installed
Message-ID:  <20031130103514.GD885@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20031130092448.8A82D42BF1@server1.messagingengine.com>
References:  <20031130092448.8A82D42BF1@server1.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031130103514.GD885>