Before installing example-2.0-1.x86_64.rpm, inspect its signature and digest result.
Do not extract or install the archive.
Which compatible command is appropriate for LPIC-1 Version 5.0?
rpm -K is the signature-checking syntax covered for LPIC-1. Newer RPM releases also provide the dedicated rpmkeys --checksig command.
Detailed explanation
rpm -K example-2.0-1.x86_64.rpmCorrect. rpm -K checks the archive's signature and digest without installing it.
Correct. rpm -K checks the archive's signature and digest without installing it.
rpm -V example-2.0-1.x86_64.rpmIncorrect. -V verifies installed files, not the signature of an RPM archive.
Incorrect. -V verifies installed files, not the signature of an RPM archive.
rpm -ql example-2.0-1.x86_64.rpmIncorrect. -ql lists files for an installed package.
Incorrect. -ql lists files for an installed package.
rpm -F example-2.0-1.x86_64.rpmIncorrect. -F performs a freshen update.
Incorrect. -F performs a freshen update.
Try it yourself
An example you can run in a temporary verification environment.
rpm -K example.rpmExpected result
署名・ダイジェストの検査結果。実在するRPMでのみ実行するKey points
- -K is the compatible checksig form
- The trusted key database matters
- rpmkeys is another modern interface
Notes
- Environment: LPIC-1 v5対象RPM・RPM 6.xでは互換alias
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.