You are not logged in.
For ages I thought about writing a small tool that lists all files differing from their original state installed by pacman, in order to get a sense of how messed up a system currently is. Finally, i got around writing it:
https://github.com/aneas/arch-diff
https://aur.archlinux.org/packages/arch-diff/
It compares the mtree-lists of all installed packages with the filesystem (filetype, mode, uid, gid, size, md5) and prints all missing, untracked and modified entries. My goal is to keep my system clean and regain some confidence in the tidyness and integrity of my Archlinux installation.
The tool itself is in its alpha state, but should work if given the right permissions.
Any feedback is highly welcome!
Offline
Is it like 'pacman -Qkk' with a more verbose output?
Offline
I have to admit I didn't know about pacman -Qkk. This would have saved we a weekend...
Yes, arch-diff is just like it, a bit more verbose maybe, and it performs a md5 instead of relying on modtime. Additionally, it lists all untracked files on the filesystem. Untracked directories will not be expanded, so don't worry about it scanning your home dirs or mountpoints. This can be useful if you happen to perform a `sudo make install` on some project and want to delete all those rogue files.
Offline
I like this, especially for its untracked files and directories
Your PKGBUILD installs into /usr/local, however. This line inside package() fixes that:
make PREFIX="/usr" DESTDIR="$pkgdir/" install
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
After the Pacman 5.0 update, arch-diff started spewing out a lot of "[missing] ./BUILDINFO" lines. I opened an issue and followed up with a pull request to fix this[1, 2] but as of yet I have not received a reply from aneaz (I will try an email soon).
Until then, you can take my patched fork of arch-diff which fixes the issue: https://github.com/Unia/arch-diff. For a PKGBUILD, see: https://gist.github.com/Unia/c0e0e873c7ffbade8aa7 (This PKGBUILD also fixes the issue described in my post above).
[1]: https://github.com/aneas/arch-diff/issues/2
[2]: https://github.com/aneas/arch-diff/pull/4
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
^ Both issues described above by myself have just been resolved
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline