Courseiva
System ManagementhardMultiple ChoiceObjective-mapped

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

    Correct: rpm -i installs the package locally without dependency resolution.

  • rpm -U package.rpm

    Why it's wrong here

    -U upgrades or installs, but still does not resolve dependencies, but -i is more appropriate for fresh install.

  • yum localinstall package.rpm

    Why it's wrong here

    yum localinstall resolves dependencies automatically.

  • dnf install ./package.rpm

    Why it's wrong here

    dnf resolves dependencies automatically.

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 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 →

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.