Re: Cleaning Debian Filesystem...
On Sun, 15 Jun 1997, Chris Jason Richards wrote: : Has anyone come up with a decent way to audit a filesystem... so the admin : can wipe out tons of stuff that is only partially installed or not : removed completely, etc. ? : : I know when I remove some debian packages usuing dselect, it usually : throws tons of messages like "can't remove /blah/bing/bang/" which scroll : by too fast. In the end, it seems like I have crap just sitting around : everywhere. : "dpkg --audit" is supposed to check what packages are only partially installed, but i have yet to try it while there was a problem on my system. this might be a good start at finding files dpkg does not directly manage, but keep in mind that symlinks and config files are not listed in the /var/lib/dpkg/info/*.list files. cat /var/lib/dpkg/info/*.list | sort | uniq > /tmp/dpkg.list locate "*" | sort > /tmp/locate.list diff /tmp/dpkg.list /tmp/locate.list the most interesting part is finding out what dpkg thinks is installed, but is not really on the filesystem. (a good way to detect a probably broken package) also... a sure fire way to clean up some of the config files dpkg has replaced is to look at the list generated by 'locate "*.dpkg-*"'. of course have updatedb configured to ignore things like /home and /tmp and /var/spool/news (if you run a news server), and maybe /dev. Also if updatedb does not run automatically from cron somewhere, run it before using the locate program for any of this. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
SUGGESTION: Re: Cleaning Debian Filesystem...
On Mon, 16 Jun 1997, Adrian Bridgett wrote: > In article <[EMAIL PROTECTED]> you wrote: > > Has anyone come up with a decent way to audit a filesystem... so the admin > > can wipe out tons of stuff that is only partially installed or not > > removed completely, etc. ? Somebody once posted a script with the following description: # $Id: dpkg-verify,v 1.4 1996-10-31 13:35:25-08 gobbel Exp $ # # dpkg-verify: Given a list of packages, check to see if any of their files # are missing. If so, optionally mark the associated package as requiring # reinstallation, and produce a report listing the missing files. Currently # no way to check that the files are actually correct, only that they exist. # NOTE: the "mark" option is currently unimplemented, and may be a bad idea. This isn't what you want, but perhaps suggests a method. The /var/lib/dpkg/info/*.list files should be a list of all installed files. Comparing this to a listing of all the files in the potential install target directories that a debian installation normally uses would give a list of files for potential removal. Or some variation on this idea. ...RickM... -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Cleaning Debian Filesystem...
In article <[EMAIL PROTECTED]> you wrote: > Has anyone come up with a decent way to audit a filesystem... so the admin > can wipe out tons of stuff that is only partially installed or not > removed completely, etc. ? I occasionally use dbackup to get a list of files which are not part of a package. Put any directories not to search in in /etc/dbackup/prune. Dos partitions, home directories and any NFS mounted sunsites are prime candidates. BTW this can take a _long_ time to run. > I know when I remove some debian packages usuing dselect, it usually > throws tons of messages like "can't remove /blah/bing/bang/" which scroll > by too fast. In the end, it seems like I have crap just sitting around > everywhere. Often these are due to the package removing a directory before the files in it are removed. IMHO dpkg should handle this better - e.g. by having a "pending" list of directories to remove. More often than not they are removed later on. Hope this helps, Adrian -- email: [EMAIL PROTECTED] | Artificial intelligence - the http://www.poboxes.com/adrian.bridgett | art of making computers act PGP key available on public key servers | like those in the movies -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Cleaning Debian Filesystem...
Chris Jason Richards <[EMAIL PROTECTED]> writes: > Has anyone come up with a decent way to audit a filesystem... so the admin > can wipe out tons of stuff that is only partially installed or not > removed completely, etc. ? Try dpkg --audit. That might or might not be what you want. -- Rob -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Cleaning Debian Filesystem...
Hi Chris try dpkg -r package name or dpkg -p package name. hope this helps Paul On Sun, 15 Jun 1997, Chris Jason Richards wrote: > Has anyone come up with a decent way to audit a filesystem... so the admin > can wipe out tons of stuff that is only partially installed or not > removed completely, etc. ? > > I know when I remove some debian packages usuing dselect, it usually > throws tons of messages like "can't remove /blah/bing/bang/" which scroll > by too fast. In the end, it seems like I have crap just sitting around > everywhere. > > Thanks, > cjr > -- > ___ > Chris Richards [EMAIL PROTECTED] | Texas A&M University > Project Coordinator| Department of Computer Science > http://www.cs.tamu.edu/people/richards | Internet Publishing Services > > A bus stops at a bus station; a train stops at a train station. > On my desk I have a workstation... > > > > -- > TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to > [EMAIL PROTECTED] . > Trouble? e-mail to [EMAIL PROTECTED] . > > -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Cleaning Debian Filesystem...
Has anyone come up with a decent way to audit a filesystem... so the admin can wipe out tons of stuff that is only partially installed or not removed completely, etc. ? I know when I remove some debian packages usuing dselect, it usually throws tons of messages like "can't remove /blah/bing/bang/" which scroll by too fast. In the end, it seems like I have crap just sitting around everywhere. Thanks, cjr -- ___ Chris Richards [EMAIL PROTECTED] | Texas A&M University Project Coordinator| Department of Computer Science http://www.cs.tamu.edu/people/richards | Internet Publishing Services A bus stops at a bus station; a train stops at a train station. On my desk I have a workstation... -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .