How to determine which distribution sets were installed

2003-11-30 Thread Paul van Berlo
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.

Thanks!


Kind regards,

Paul van Berlo
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to determine which distribution sets were installed

2003-11-30 Thread Matthew Seaman
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


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


pgp0.pgp
Description: PGP signature


Re: How to determine which distribution sets were installed

2003-11-30 Thread Allan Bowhill
On  0, Paul van Berlo [EMAIL PROTECTED] 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.

If you are just talking about software installed using the
ports/packages collection just do pkg_info -a. Generally, this
reflects what exists on the system at the current moment. But there
are no guarantees, since things can be erased manually.

But really finding out what was installed would be a pretty involved
thing, becuase you can't guarantee the person who owned it last had not
added, removed or modified anything outside the record-keeping mechanisms
since he/she first installed the OS.

--Allan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to determine which distribution sets were installed

2003-11-30 Thread Melvyn Sopacua
On Sunday 30 November 2003 08:52, Allan Bowhill wrote:

 On  0, Paul van Berlo [EMAIL PROTECTED] 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/*.

-- 
Melvyn

===
FreeBSD sarevok.webteckies.org 5.2-BETA FreeBSD 5.2-BETA #1: Sat Nov 29 
00:15:33 CET 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/
SAREVOK_NOFW_DBG  i386
===


pgp0.pgp
Description: signature


Re: How to determine which distribution sets were installed

2003-11-30 Thread Allan Bowhill
On  0, Melvyn Sopacua [EMAIL PROTECTED] wrote:
:On Sunday 30 November 2003 08:52, Allan Bowhill wrote:
:
: On  0, Paul van Berlo [EMAIL PROTECTED] 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
[EMAIL PROTECTED]

George Orwell was an optimist.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]