CompTIA Linux+ Practice Questions: Package Management

8 free, exam-style CompTIA Linux+ (XK0-006) practice questions covering Package Management. Each question shows the correct answer and a clear explanation. Ready for the real thing? Take the full timed quiz below.

🚀 Take the full CompTIA Linux+ quiz 📘 CompTIA Linux+ study guide

Q1. Which package manager uses .deb files?

Explanation: apt is used by Debian-based systems like Ubuntu. Learn more.

Q2. What command lists RPM package dependencies?

Explanation: rpm -qR <package> shows requirements/dependencies. Learn more.

Q3. Which command lists all available yum repositories?

Explanation: yum repolist shows enabled repositories. Learn more.

Q4. Which command lists available yum package groups?

Explanation: Lists installable package groups. Learn more.

Q5. Which tool is commonly used on Debian-based systems to install packages?

Explanation: apt is the package management front end commonly used by Debian and Ubuntu systems. Learn more.

Q6. Which command searches package contents on RPM-based systems after installing dnf-utils or equivalent tooling?

Explanation: repoquery can query package metadata and contents in RPM-based repositories. Learn more.

Q7. Which command can reverse a package transaction recorded by DNF?

Explanation: DNF records package transactions in its history, and dnf history undo can attempt to reverse the changes from a selected transaction. Learn more.

Q8. Which command prevents a selected Debian package from being automatically upgraded?

Explanation: apt-mark hold marks a package so normal upgrade operations retain its currently installed version. Learn more.

More CompTIA Linux+ practice topics