0% found this document useful (0 votes)
57 views

Linux Commands

The document provides examples of Linux commands for working with RPM packages: 1. The rpm -K command verifies that an RPM package has not been corrupted or tampered with by examining its md5sum. 2. The rpm -import command imports Red Hat GPG keys needed to verify Red Hat packages. 3. The rpm commands displayed allow viewing installed GPG keys, details of a specific key, verifying package signatures, and more.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views

Linux Commands

The document provides examples of Linux commands for working with RPM packages: 1. The rpm -K command verifies that an RPM package has not been corrupted or tampered with by examining its md5sum. 2. The rpm -import command imports Red Hat GPG keys needed to verify Red Hat packages. 3. The rpm commands displayed allow viewing installed GPG keys, details of a specific key, verifying package signatures, and more.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

-: 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

You might also like