Re: meta-Diffing a running machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Arremann wrote:
> On Wednesday 19 October 2005 21:02, Philip Prindeville wrote:
> 
>>I was wondering if there's a handy way to look for files
>>on a machine (like /etc/hosts, /etc/passwd, /etc/sysconfig/*, etc)
>>that have been modified relative to the installed RPM's.
>>
>>Since files installed via RPM have MD5 checksums, it shouldn't
>>be too hard to find tweaked files, right?
>>
>>I recently realized that I have no easy way to isolate and summarize
>>the machine I currently use versus its initial state "out of the box".
>>
>>What tools are available?
>>
>>Thanks,
>>
>>-Philip
> 
> 
> rpm will do the trick...
> rpm -V will show you the modifications to the rpm you specified and xargs can 
> help you there very nicely. rpm -qa | xargs rpm -V 
> or rpm -V `rpm -qa` if you like that one better.
> 
> If the output line has a 5 in it, then your md5 sum doesn't match. 
> That leaves you with
> rpm -V `rpm -qa` | grep ^..5
> 
> Peter.
> 
or indeed
rpm -Va
which does exactly the same thing

:)

Stuart
- --
Stuart Sears RHCE RHCX
/* panic??  These should never occur in our application. */
        linux-2.6.6/drivers/scsi/aic7xxx/aiclib.c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDV3JIamPtx1brPQ4RAu54AJsHnaSisLRaKFxvUU9xTSpK4Js74gCfR9Vc
DybiLxFc75vhiDv/TaNAUog=
=BC28
-----END PGP SIGNATURE-----


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux