A Linux administrator has downloaded security-patch-2.5.rpm from a vendor's repository. Before installing this critical update on a production server, the administrator needs to verify the package's GPG signature to ensure it is authentic and has not been tampered with. The vendor's GPG public key has already been imported into the RPM database. Which of the following commands should be used to perform this signature verification on the downloaded file?
The correct command to verify the digital signature of a downloaded RPM package file is rpm -K or rpm --checksig. This command checks the GPG signature embedded within the package file against the public keys stored in the RPM database. If the signature is valid and the corresponding public key is trusted, it confirms the package's authenticity and integrity.
The rpm -V command is incorrect because it is used to verify the files of an already installed package against the database metadata, checking for changes in file size, permissions, and checksums, but it does not check the signature of a downloaded .rpm file. The sha256sum command is incorrect because it only calculates a cryptographic hash (checksum) of the file. While this can verify file integrity if compared to a trusted hash value, it does not verify the authenticity provided by a digital signature. The gpg --verify command is also incorrect in this context because, while GPG is the underlying technology, rpm is the tool used to interact directly with the signature embedded in the RPM package format. gpg --verify would be used on a separate signature file (e.g., .asc), not the .rpm file itself.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of a GPG signature in an RPM package?
Open an interactive chat with Bash
How is the `rpm -K` command different from the `rpm -V` command?
Open an interactive chat with Bash
Why isn't `sha256sum` sufficient for verifying an RPM package?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access