Study for the TestOut Linux Pro Exam with our engaging quiz. Prepare using our flashcards and comprehensive multiple choice questions, each with hints and explanations to help you succeed. Get ready for your Linux certification today!

Practice this question and more.


To verify the installation of a package in rpm, which command would you use?

  1. rpm -e

  2. rpm -q

  3. rpm -ivh

  4. dnf verify

The correct answer is: rpm -q

To verify the installation of a package using RPM, the command that should be used is designed specifically for querying installed packages. This command allows you to check whether a specific package is installed and access its details. Utilizing the query option with RPM provides information about the installed packages, including version numbers, installation dates, and file locations. When you specify the package name with this command, it will confirm if that package is currently installed on the system and return the necessary details. Other commands listed serve different purposes. The command used to remove a package would not serve to verify installation. Similarly, installing a package or verifying packages using a different package manager like DNF, does not apply in the context of querying with RPM.