Stop hunting for ghost files after a partial package upgrade
Package Management (Apt/Dnf/Pacman Internals)
Stop hunting for ghost files after a partial package upgrade
🧩 The Challenge
You ever run an update, it fails halfway through because of a power flicker or a full disk, and now half your files are from the old version while the rest are from the new one? It’s a total nightmare because the package manager thinks everything is fine, but your binary is straight-up garbage.
💡 The Fix
Use the verification feature built into your package manager to check every single file on disk against the checksums in the package metadata. It’ll point out exactly which files have been corrupted or partially updated so you can fix the mess.
rpm -Va || debsums -s
⚙️ Why It Works
The magic here lies in the package manager comparing the md5 or sha256 hashes of the files currently sitting on your filesystem against the trusted manifests stored in the local package database. It’s the only way to know if your binaries are actually what the maintainer intended.
🚀 Pro-Tip: Run this after a botched disk restore to see which configs got clobbered.
Linux Tips & Tricks | © ngelinux.com | 9/18/2026
