10. Find out the state of files in a package using rpm -qsp
# rpm -qsp MySQL-client-3.23.57-1.i386.rpm
normal /usr/bin/msql2mysql
normal /usr/bin/mysql
normal /usr/bin/mysql_find_rows
normal /usr/bin/mysqlaccess
normal /usr/bin/mysqladmin
normal /usr/bin/mysqlbinlog
normal /usr/bin/mysqlcheck
normal /usr/bin/mysqldump
normal /usr/bin/mysqlimport
normal /usr/bin/mysqlshow
normal /usr/share/man/man1/mysql.1.gz
normal /usr/share/man/man1/mysqlaccess.1.gz
normal /usr/share/man/man1/mysqladmin.1.gz
normal /usr/share/man/man1/mysqldump.1.gz
normal /usr/share/man/man1/mysqlshow.1.gz
11. Verify a Particular RPM Package using rpm -Vp
# rpm -Vp MySQL-client-3.23.57-1.i386.rpm
S.5....T c /usr/bin/msql2mysql
S.5....T c /usr/bin/mysql
S.5....T c /usr/bin/mysql_find_rows
S.5....T c /usr/bin/mysqlaccess
The character in the above output denotes the following:
S file Size differs
M Mode differs (includes permissions and file type)
5 MD5 sum differs
D Device major/minor number mismatch
L readlink(2) path mismatch
U User ownership differs
G Group ownership differs
T mTime differs
12. Verify a Package Owning file using rpm -Vf
# rpm -Vf /usr/bin/mysqlaccess
S.5....T c /usr/bin/mysql
# rpm -Va
S.5....T c /etc/issue
S.5....T c /etc/issue.net
S.5....T c /var/service/imap/ssl/seed
S.5....T c /home/httpd/html/horde/ingo/config/backends.php
.
.
S.5....T c /home/httpd/html/horde/ingo/config/prefs.php
S.5....T c /etc/printcap