rpm -qV openssh-server I will get a list of files that have changed compared to default.
~$ rpm -qV openssh-server S.?....T. c /etc/ssh/sshd_config ~$
dpkg on Ubuntu do the same?
I don't thinks so, in Ubuntu md5 checksums are only stored for certain files. For any given package the list of files that have checksums can be found in
These generally don't contain a complete list of the files that have been installed by a package e.g. openssh-server.md5sums
You can use the debsums command (sudo apt-get install debsums) to check the files that have md5 signatures
As in dpkg/1.17.2, it implements
Note this is a relatively new change to dpkg.
Here is a brief description of
So you may just use similar syntax as in
or just use
It seems that .deb packages only contain md5sums metadata for verification.
There is tool debsums you can check out.
Normally I have a list of files that I want to verify.
Use like this:
Output on my environment:
Of course, it should be fairly simple to write a similar alias/script to check the files from a specific package.