From owner-freebsd-questions Sat Jul 6 3:57:10 2002 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 BF34B37B400 for ; Sat, 6 Jul 2002 03:57:04 -0700 (PDT) Received: from mta03-svc.ntlworld.com (mta03-svc.ntlworld.com [62.253.162.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 058D443E09 for ; Sat, 6 Jul 2002 03:57:04 -0700 (PDT) (envelope-from lee@unassemble.co.uk) Received: from Administrator ([80.0.77.2]) by mta03-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with SMTP id <20020706105702.VQND23840.mta03-svc.ntlworld.com@Administrator>; Sat, 6 Jul 2002 11:57:02 +0100 Message-ID: <001901c224dc$6726db40$6400a8c0@Administrator> From: "Lee" To: "Matthew Seaman" Cc: References: <002701c2245b$bc1f7fc0$6400a8c0@Administrator> <20020706104547.GB7912@happy-idiot-talk.infracaninophi> Subject: Re: File System Monitoring Date: Sat, 6 Jul 2002 12:00:53 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Cheers Matthew for that advise. What I have though about doing is something like this. ---------------------- find /etc /usr /sbin /bin > $HOME/before_install.txt ./configure make make test make install find /etc /usr /sbin /bin > $HOME/after_install.txt diff $HOME/before_install.txt $HOME/after_install.txt | less ---------------------- Is anyone aware of any problems with doing it this way. Thanks Lee ----- Original Message ----- From: "Matthew Seaman" To: "Lee" Cc: Sent: Saturday, July 06, 2002 11:45 AM Subject: Re: File System Monitoring > On Fri, Jul 05, 2002 at 08:39:50PM +0100, Lee wrote: > > > If anyone has read my previous posts, you can probably tell that I > > am new to the whole FreeBSD / UNIX thing. So sorry if my questions > > are a little simple. > > Few are born with an instinctual knowledge of Unix. Fear not: we've > all been there, and even if we can make it seem easy now, we remember > when it was new and difficult. > > > Because I use my FreeBSD 4.6 machine purely for learning rather > > product use I am installing a lot of different programs to try them > > out. What I am looking for is a program that I can run after each > > program is installed to see a the most simple level what files have > > been added, but I would also prefer to be able to see what files > > have been modified. > > Hmmm... if you're using ports/packages then > > pkg_info -L pkgname > > will show you all of the files installed by that package. > > pkg_info -g pkgname > > will show you all the files belonging to that package that don't match > what was originally installed. There are some vital files that are > deliberately left out of some packages, for instance, the www/apache2 > package doesn't include /usr/local/etc/apache2/httpd.conf --- the > principal configuration file for the apache daemon. Most daemon > processes installed from ports have sample startup scripts installed > in ${PREFIX}/etc/rc.d, but in such a way that they have to be > deliberately renamed in order to enable the process to automatically > start on reboot. > > > I believe this can be done using a combination of find & diff, but > > does anyone know of any good programs that provide more advanced > > options or simply provide better results. > > Find(1) can do a lot for you: eg. to find all of the files modified in > the last 24 hours under /usr/local: > > find /usr/local -mtime -1 -print > > but diff(1) has the unfortunate requirement that you keep unmodified > copies of the files around for something to compare against. > > Perhaps it's not exactly what you were talking about above, but cvs(1) > is designed, in essence, to track modifications to files over time. > The cvsweb.cgi application (ports: devel/cvsweb) gives you a nice > graphical interface with side-by-side comparisons of the difference > between versions of a file. > > Look at http://www.freebsd.org/cgi/cvsweb.cgi/ for the canonical > example. cvsweb.cgi was invented by Bill Fenner as a tool to access > the FreeBSD CVS Repository over the web. Since then it's been adopted > by many open source projects. > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks > Savill Way > Tel: +44 1628 476614 Marlow > Fax: +44 0870 0522645 Bucks., SL7 1TH UK > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message