Courseiva
System Management →hardMultiple Choice

XK0-006 System Management Practice Question

A system administrator needs to install a package from a local RPM file without resolving dependencies automatically. Which command should be used?

⚠ Common exam trap

Watch out — candidates often confuse `rpm -i` with `rpm -U` or assume that higher-level tools like `yum` or `dnf` can be used to install local RPMs without dependency resolution, but those tools are designed to automatically resolve dependencies, which directly violates the question's constraint.

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 -i package.rpm

The `rpm -i package.rpm` command installs the specified RPM package without automatically resolving dependencies. The `-i` flag stands for 'install' and, unlike `-U` (upgrade) or higher-level tools like `yum` or `dnf`, it does not attempt to fetch or satisfy missing dependencies from configured repositories. This is the correct choice when the requirement is to install a local RPM file while explicitly avoiding automatic dependency resolution.

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 -i package.rpm

    Why this is correct

    The rpm -i command installs a local package file directly without contacting repositories or resolving dependencies, matching the requirement to skip automatic dependency resolution. Tools like dnf or yum would instead fetch and resolve dependencies.

  • ✗

    rpm -U package.rpm

    Why it's wrong here

    `rpm -U` upgrades or installs a package but still processes dependencies, failing when they are absent. The stem requires installation without dependency resolution, which `rpm -i --nodeps` provides. `-U` is tempting because it is the standard upgrade command, and would be correct when replacing an existing installed package version.

  • ✗

    yum localinstall package.rpm

    Why it's wrong here

    `yum localinstall` still resolves and installs dependencies from configured repositories, so it contradicts the requirement to skip dependency resolution. It is tempting because it installs a local RPM while handling dependencies — the right choice when you want those dependencies fetched automatically. `rpm -ivh --nodeps package.rpm` installs the file without resolving dependencies.

  • ✗

    dnf install ./package.rpm

    Why it's wrong here

    `dnf install ./package.rpm` resolves and installs dependencies from configured repositories, which directly contradicts the requirement to skip dependency resolution. It is tempting because dnf is the standard package manager for installing local RPM files in normal circumstances, where automatic dependency handling is desirable rather than prohibited.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

One of 781 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 →

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.