GIAC Security Essentials Certification (GSEC) — Question 31

Which command would allow an administrator to determine if a RPM package was already installed?

Answer options

Correct answer: B

Explanation

The command 'rpm -q' is used to query the RPM database to check if a specific package is installed, making it the correct choice. The other options do not serve the purpose of checking for the existence of an installed package: 'rpm -s' is used for verifying package files, 'rpm -a' lists all installed packages, and 'rpm -t' is not a valid command.