XK0-006 System Management Practice Question
A Linux administrator needs to remove a package installed via RPM and all its configuration files. Which command should the administrator use?
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 -e package
The `rpm -e` command removes the specified package and its configuration files by default. Option A (`rpm -e package`) is the standard way to uninstall an RPM package including config files. Option B (`rpm -V`) verifies the package but does not remove it. Option C (`rpm -e --allmatches`) removes all versions of the package, which is unnecessary for a single installation. Option D (`rpm -e --nodeps`) ignores dependencies but still removes config files; however, it is not the best answer because dependencies are not mentioned and the straightforward `rpm -e` is correct. Therefore, the correct command is `rpm -e package`.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
rpm -e package
Why this is correct
Correct: rpm -e removes the package and its configuration files.
- ✗
rpm -V package
Why it's wrong here
-V verifies package, does not remove.
- ✗
rpm -e --allmatches package
Why it's wrong here
Removes all versions, also removes config; but not the typical command.
- ✗
rpm -e --nodeps package
Why it's wrong here
Removes package ignoring dependencies, but also removes config; not the standard way.
Go deeper
Related to this question
Learn chapter
Linux Fundamentals and History
Key term
Linux
Linux is an open-source operating system that manages computer hardware and software, widely used in servers, desktops, and embedded systems.
Key term
rpm
RPM Package Manager (originally Red Hat Package Manager) is a powerful command-line utility for installing, updating, removing, querying, and verifying software packages on Linux systems that use the .rpm package format.
About these practice questions
One of 979 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
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.