Which THREE of the following statements about package management on an RPM-based system are correct?

LPIC-1 Exam 101-500, objective 102. Linux installation and package management medium

Machine-checked — no person has signed for it. This question was read against the source cited below by an automated pass, which found no contradiction. That is a weaker claim than it sounds: the same kind of process wrote the question, so it can confirm its own mistake.

Treat it as a good draft rather than as settled fact, and read the source below before you rely on it. It is not used in mock exams here — only questions a person has signed for are.

How these questions are written — where each question comes from, what the verification ledger records, and what happens when one is found wrong.

The options

Choose 3.

Correct rpm does not fetch missing dependencies from repositories; it acts only on the package files or installed packages you name

Correct. rpm checks dependencies and refuses a transaction that would break them, but resolving and downloading them is the job of yum, dnf or zypper.

Correct Repository definitions for yum and dnf are kept as .repo files in /etc/yum.repos.d/, while global settings live in /etc/yum.conf

Correct. Each .repo file holds one or more sections keyed by repository id; /etc/yum.conf carries the [main] section and on dnf systems is normally a link to /etc/dnf/dnf.conf.

Correct The database of installed packages that rpm -q consults is stored under /var/lib/rpm

Correct. That directory holds the RPM database, which is why queries about installed packages work with no network access at all.

Not correct yum and dnf maintain their own record of installed packages, separate from the RPM database

Wrong. They are front ends: every install or removal ends in an rpm transaction, and the RPM database under /var/lib/rpm remains the single record of what is installed.

Not correct rpm -qa lists every package available in the configured repositories

Wrong. -qa queries the local database, so it lists what is installed. Listing what is available needs a repository-aware tool, for example `dnf list available`.

Not correct zypper belongs to the SUSE family and cannot install a local .rpm file, only packages from repositories

Wrong. zypper is indeed the SUSE tool, but `zypper install ./package.rpm` installs a local file and still resolves its dependencies from the configured repositories.

Why

The layering is the point: rpm is the low-level tool that installs, removes, verifies and queries individual packages against the database in /var/lib/rpm, and yum, dnf and zypper are repository-aware front ends that compute transactions from remote metadata and then hand them to rpm. Configuration follows the same split, with repository definitions under /etc/yum.repos.d/ (or /etc/zypp/repos.d/ on SUSE) and global behaviour in /etc/yum.conf. Knowing which layer owns a piece of state tells you which tool can answer a given question.

Where this comes from

Cited
manual page yum.conf(5)

Practise this

Reading one question is not practice. The trainer will draw a short set from objective 102 and space the ones you get wrong.

Practise LPIC-1 Exam 101-500

More questions on this objective

All questions on Linux installation and package management

Practise LPIC-1 Exam 101-500