[SLUG] using apt-pkg data to build backup candidate list

2007-04-01 Thread Peter Miller
On systems which use apt-get and friends...

Does anyone know of a tool which walks all the files on your system, and
((any files which are not part of any package) or (files which are part
of a package and which have been changed, thinking here of config
files)) print the file name?

This would be great for generating a list of file backup candidates.

debsums(1) comes close, but only for installed files, and I'd like all
of the files which *aren't* package files as well.


Regards
Peter Miller [EMAIL PROTECTED]
/\/\*http://miller.emu.id.au/pmiller/

PGP public key ID: 1024D/D0EDB64D
fingerprint = AD0A C5DF C426 4F03 5D53  2BDB 18D8 A4E2 D0ED B64D
See http://www.keyserver.net or any PGP keyserver for public key.

It is practically impossible to teach good programming
style to students that have had prior exposure to Basic; as
potential programmers they are mentally mutilated beyond hope of
regeneration. -- Edsger Dijkstra


signature.asc
Description: This is a digitally signed message part
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] using apt-pkg data to build backup candidate list

2007-04-01 Thread Peter Hardy
On Mon, 2007-04-02 at 13:05 +1000, Peter Miller wrote:
 Does anyone know of a tool which walks all the files on your system, and
 ((any files which are not part of any package) or (files which are part
 of a package and which have been changed, thinking here of config
 files)) print the file name?
 
 This would be great for generating a list of file backup candidates.
 
 debsums(1) comes close, but only for installed files, and I'd like all
 of the files which *aren't* package files as well.

cruft(8) will tell you about files that don't belong to any installed
packages. Hopefully that should cover everything you need?

-- 
Pete

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] using apt-pkg data to build backup candidate list

2007-04-01 Thread John Ferlito
On Mon, Apr 02, 2007 at 01:05:53PM +1000, Peter Miller wrote:
 Does anyone know of a tool which walks all the files on your system, and
 ((any files which are not part of any package) or (files which are part
 of a package and which have been changed, thinking here of config
 files)) print the file name?

Try cruft

Description: Find any cruft built up on your system
 cruft is a program to look over your system for anything that
 shouldn't be there, but is; or for anything that should be there, but
 isn't. 

 It bases most of its results on dpkg's database, as well as a list
 of `extra files' that can appear during the lifetime of various
 packages. 

 cruft is still in pre-release; your assistance in improving its
 accuracy and performance is appreciated.

-- 
John
http://www.inodes.org/
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html