Multiple choice technology programming languages

How To Determine What Packages Are Installed on a System?

  1. pkglst -a

  2. pkglst -ql

  3. rpm -qa

  4. rpm -i

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The rpm -qa command queries all installed packages and lists them, making it easy to see what's on the system. Options A and B use non-existent commands. Option D (rpm -i) is for installing packages, not listing them. This applies specifically to RPM-based systems like Red Hat, Fedora, CentOS.