Skip to content

Linux+ XK0-006 practice question 3: System management

A package must be installed on a Debian-based system and its dependencies resolved automatically. Which command does this?

The options

  • A. rpm -ivh packagename
  • B. tar -xzf packagename
  • C. dnf makecache packagename
  • D. apt install packagename

Answer and why

The correct answer is D: apt install packagename

A. rpm installs a local RPM and does not resolve dependencies on its own, and it belongs to Red Hat style systems.

B. tar unpacks an archive and is not a package manager.

C. makecache refreshes metadata and installs nothing.

D. apt resolves and installs dependencies from the configured repositories.

What System management tests

System management is storage, boot, packages, processes and networking basics. Distractors are real commands for a neighboring job, so match the tool to the object the stem names: a block device, a package, a process or an interface.

System management is 23% of the XK0-006 exam. The exam has 90 questions in 90 minutes, so this question is a slice of the real mix, not a prediction of your result.

Try these next

Each one is a free question from the same practice test, with the answer and the reason for every option on its own page.

Keep going

This is question 3 of 15 in the free Linux+ XK0-006 practice test. If you missed it, say why in one sentence before you read on: the reason is what transfers to a differently worded question.