-: Linux Commands :1.
Verify the rpm package has not been corrupted or tempered with; examine only the md5sum by typing following command.
Command: Rpm K <rpm-file>
2.
To verify red had package, you must import the red hat GPG key. To do so, execute the following command on shell prompt.
Command: rpm import /usr/share/rhn/RPM-GPG-KEY 3. To display a list of all keys installed for RPM verification Command: rpm qa gpg-pubkey* For Red Hat the output includes gpg-pubkey-db42a60e-37ea5438 ---- (Key in red hat linux) 4. To display detail about specific key Command: rpm qi gpg-pubkey-db42a60e-37ea5438 5. Verify signature of a package Command: rpm K <rpm-file> 6. Perhaps some files deleted by accident, but you are not sure what deleted. To verify entire system and see what might be missing. Command: rpm Va 7. Find a file owned by a certain package Command: rpm qf /usr/bin/ggv 8. We can combine the above two examples in the following scenario. Say you are having problems with
Patni Confidential
/usr/bin/paste. You would like to verify the package that owns that program, but you do not know which package owns paste. Enter the following command Command: rpm -Vf /usr/bin/paste 9. To get information about particular program Command: rpm -qdf /usr/bin/free 10. To find an information of a RPM, what it does Command: rpm -qip crontabs-1.10-7.noarch.rpm 11. To see ehat files a RPM install. For example crontabs RPM Command: rpm -qlp crontabs-1.10-5.noarch.rpm
Patni Confidential