Courseiva
easyMultiple ChoiceObjective-mapped

XK0-006 Practice Question: Verify which RPM packages are installed on a Red…

An administrator wants to verify which RPM packages are installed on a Red Hat Enterprise Linux system. Which command displays that information?

⚠ Common exam trap

The trap here is that candidates familiar with Debian-based systems might choose `dpkg -l` or `apt list --installed`, while those who use yum daily might pick `yum list installed` because it works, but the exam specifically tests knowledge of the native RPM command `rpm -qa` for direct package database queries.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

rpm -qa

The `rpm -qa` command queries the RPM database and lists all installed packages on a Red Hat Enterprise Linux system. The `-q` flag enables query mode, and `-a` specifies all packages, making it the correct tool for this task.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • dpkg -l

    Why it's wrong here

    dpkg is for Debian-based systems.

  • apt list --installed

    Why it's wrong here

    apt is for Debian-based systems.

  • rpm -qa

    Why this is correct

    rpm -qa queries all installed RPM packages.

  • yum list installed

    Why it's wrong here

    yum can list installed packages but rpm -qa is more direct for package query.

About these practice questions

This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.