Tuesday, August 18, 2009

RPM Management

1) To Install an RPM package use command
rpm -ivh foo.rpm

2) To Uninstall
rpm -e foo.rpm

3) To Upgrade
rpm -Uvh foo.rpm

4) To Query
rpm -qpi foo.rpm

5) To List files in rpm which is installed
rpm -ql foo.rpm

6) To list files in a rpm which is not installed
rpm -qpl foo.rpm

7) To know to which rpm a file felong
rpm -qf /etc/passwd

8) To check PGP signature
rpm --checksig foo.rpm

9) To Check only md5sum
rpm --checksig --nopgp foo.rpm

No comments: