By
•
March 19, 2025
•
Daily Blog
linux forensics
packages
•
Hello Reader,
We've talked about validating rpms in several posts now but there are other package managers besides rpm. Let's talk about how we can do the same validation with other package managers.
dpkg & debsums)Install debsums if you haven't already:
sudo apt install debsums
Verify file hashes for a specific package:
sudo debsums -s <package-name>
Verify a specific file:
sudo debsums -s <package-name> | grep /path/to/file
Verify all installed packages:
sudo debsums -cs
pacman)Check integrity of a specific package:
pacman -Qkk <package-name>
Verify a single file:
pacman -Qkk <package-name> | grep /path/to/file
Verify all installed packages:
pacman -Qkk
rpm & zypper)openSUSE uses RPM, so you can use standard RPM verification commands:
Check integrity of a file against the RPM database:
rpm -Vf /path/to/file
Verify all installed packages:
rpm -Va
apk)Newer Alpine Linux versions (3.15+) include the apk audit command:
Verify integrity of a package:
apk audit <package-name>
Verify all installed packages:
apk audit