Audit tools?

Roland Smith rsmith at xs4all.nl
Mon Apr 25 08:22:12 PDT 2005


On Sun, Apr 24, 2005 at 01:08:55PM -0700, Jay O'Brien wrote:
> Erik Trulsson wrote:
> 
> > On Sun, Apr 24, 2005 at 08:02:39AM -0700, Jay O'Brien wrote:
> > 
> >>What are the tools that I should use to audit an existing 
> >>FreeBSD installation? Without changing anything, I wish 
> >>to quickly determine what is installed, i.e., the basic 
> >>system, ports and packages, and then to compare what is 
> >>installed to the currently available versions. 
> > 
> > 
> > For ports/packages you can use pkg_info(1) to see what is installed,
> > and pkg_version(1) to compare what is installed to what is in the ports
> > tree.

For packages: ls /var/db/pkg/ will show you what's installed.

For the base system, you'll have to look at /etc/make.conf and the
kernel configuration file. The kernel configuration (default is
/usr/src/sys/ARCH/conf/GENERIC, where ARCH is i386, amd64, alpha etc)
file determines what's being built into the kernel.
 
By setting variables in make.conf, you can determine what's going to be
built in the next buildworld. For instance, if you set NO_BLUETOOTH=true
in make.conf, programs and modules relating to bluetooth will not be built.
See 'man make.conf' for a list of settings.

Roland
-- 
R.F. Smith                           /"\    ASCII Ribbon Campaign
r s m i t h @ x s 4 a l l . n l      \ /    No HTML/RTF in e-mail
http://www.xs4all.nl/~rsmith/         X     No Word docs in e-mail
public key: http://www.keyserver.net / \    Respect for open standards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050425/6ae1e910/attachment.bin


More information about the freebsd-questions mailing list