Courseiva
Linux Installation and Package ManagementmediumMultiple ChoiceObjective-mapped

LPIC-1 Linux Installation and Package Management Practice Question

A system administrator installs a new RPM package, but it fails due to a missing library dependency. Which command can best identify the specific dependency that is missing?

⚠ Common exam trap

It's easy for candidates to confuse `rpm -qlp` (list files) with `rpm -qpR` (list requirements), or they assume `yum deplist` is the best tool for a local RPM file, but `yum` requires network access and repository metadata, while `rpm` works directly on the file.

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

The correct command is `rpm -qpR`. The `-q` flag queries the RPM database, `-p` specifies a package file (not an installed package), and `-R` lists all capabilities (including shared libraries) that the package requires. This directly shows the missing dependency by name, such as `libfoo.so.1`. The other options either list installed packages, query files within a package, or use a higher-level tool that may not pinpoint the exact missing library.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • yum deplist

    Why it's wrong here

    This shows dependencies but requires the package to be in a repository, not a local file.

  • rpm -qlp

    Why it's wrong here

    This lists files in a package.

  • rpm -qa

    Why it's wrong here

    This lists all installed packages.

  • rpm -qpR

    Why this is correct

    This queries a package file for its requires (dependencies).

About these practice questions

Courseiva writes every LPIC-1 question from scratch — 527 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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 LPIC-1 practice question is part of Courseiva's free LPI 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 LPIC-1 exam.