CCNA Installation Packages Questions

7 of 82 questions · Page 2/2 · Installation Packages topic · Answers revealed

76
MCQeasy

Refer to the exhibit. An administrator wants to verify the integrity of the kernel-core package by checking its signature. Which command is used?

A.`rpm -qa kernel-core`
B.`rpm -q --changelog kernel-core`
C.`rpm -K kernel-core`
D.`rpm -V kernel-core`
AnswerC

Checks the package signature.

Why this answer

`rpm -K` (or `rpm --checksig`) checks the GPG signature of the package. `rpm -V` verifies file integrity against the database, not signature. `rpm --verify` is same as -V. `rpm -q --changelog` shows changelog. `rpm -qa` lists all packages.

77
MCQmedium

A user compiling software from source successfully runs './configure' and 'make', but the resulting binaries are not in the PATH. Which command should be run to install them system-wide?

A.make
B.make all
C.make clean
D.make install
AnswerD

make install places compiled files in the appropriate system locations.

Why this answer

The 'make install' command copies binaries to standard directories (e.g., /usr/local/bin). 'make' only compiles, 'make all' is default, 'make clean' removes temporary files.

78
MCQmedium

An administrator wants to prevent a specific package from being upgraded during routine system updates. Which command marks the package as held back?

A.apt-get hold package
B.apt-mark hold package
C.dpkg --hold package
D.echo 'package hold' | dpkg --set-selections
AnswerB

apt-mark hold is the standard command to prevent package upgrades.

Why this answer

Option B is correct because apt-mark hold package prevents upgrades. Option A is incorrect because dpkg --set-selections with 'hold' works but requires a different syntax. Option C is incorrect because apt-get hold is not a valid command.

Option D is incorrect because dpkg --hold is not a valid option.

79
MCQmedium

Refer to the exhibit. A new installation requires the root filesystem to be placed on LVM. Based on the current disk layout, which partition is most suitable for use as an LVM physical volume?

A./dev/sda3
B./dev/sda2
C.A new partition must be created.
D./dev/sda1
AnswerB

It is type 8e (Linux LVM) and large enough.

Why this answer

Option B (/dev/sda2) is correct because it is the only partition with the Linux LVM system ID (8e) in the exhibit, which is required for a partition to be used as an LVM physical volume. The extended partition /dev/sda2 contains the logical drives, but the system ID 8e on /dev/sda2 itself indicates it is designated for LVM, making it suitable for pvcreate.

Exam trap

The trap here is that candidates may assume any partition within an extended partition (like /dev/sda3) can be used for LVM, but the system ID must be explicitly set to 8e, and the extended partition itself (/dev/sda2) can be the physical volume if it has the correct flag.

How to eliminate wrong answers

Option A is wrong because /dev/sda3 is a logical drive within the extended partition, but its system ID is 83 (Linux native), not 8e (LVM), so it cannot be used directly as an LVM physical volume without changing its type. Option C is wrong because a new partition is not necessary; /dev/sda2 already exists with the correct LVM system ID and can be used. Option D is wrong because /dev/sda1 has system ID 83 (Linux native) and is typically used for /boot, not for LVM, and lacks the 8e flag.

80
MCQmedium

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?

A.yum deplist
B.rpm -qlp
C.rpm -qa
D.rpm -qpR
AnswerD

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

Why this answer

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.

Exam trap

The trap here is that candidates often 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.

How to eliminate wrong answers

Option A is wrong because `yum deplist` shows dependencies for a package but uses the YUM repository metadata, not the RPM package file itself, and may not reveal the exact missing library if the repository is incomplete or the package is local. Option B is wrong because `rpm -qlp` lists the files that would be installed by the package, not the dependencies it requires. Option C is wrong because `rpm -qa` lists all installed packages, which is irrelevant for diagnosing a missing dependency from a new package.

81
MCQhard

Refer to the exhibit. A system administrator checks the integrity of the passwd package on a CentOS 7 system using rpm -V. Based on the output, what is the most likely cause of the 'missing' line?

A.The package was updated to a newer version that no longer includes this file.
B.The file /etc/security/passwd was modified after installation.
C.The package was not installed completely.
D.The file /etc/security/passwd was deleted from the filesystem.
AnswerD

The 'missing' attribute indicates the file is not present on disk.

Why this answer

The 'missing' line in the rpm -V output indicates that the file /etc/security/passwd is not present on the filesystem. Since rpm -V verifies file attributes and existence against the RPM database, a missing file means it was deleted after installation. Option D correctly identifies this as the most likely cause.

Exam trap

The trap here is that candidates may confuse 'missing' with 'modified' or think an incomplete installation would cause a single missing file, but rpm -V specifically distinguishes between missing files (deleted) and modified files (changed attributes).

How to eliminate wrong answers

Option A is wrong because if the package were updated to a newer version that no longer includes this file, the file would be removed during the update and rpm -V would not report it as missing (the RPM database would reflect the new package contents). Option B is wrong because a modified file would show a '5' (MD5 checksum change) or other attribute change in the output, not a 'missing' indicator. Option C is wrong because an incomplete installation would likely cause multiple missing files or other verification errors, and the RPM database would not have recorded the file as part of the package if it were never installed.

82
MCQhard

An administrator suspects that a critical system file has been modified after installation. Which command can be used to verify the integrity of all installed RPM packages on a RHEL system?

A.`rpm -K`
B.`rpm --verify`
C.`rpm -V all`
D.`rpm -Va`
AnswerD

Verifies all installed packages against RPM database.

Why this answer

`rpm -Va` verifies all installed packages by checking file sizes, permissions, hashes, etc., against the RPM database. The other options are incorrect: `rpm -V` requires a package name, `rpm --checksig` checks signature only, and `rpm -K` also checks signature.

← PreviousPage 2 of 2 · 82 questions total

Ready to test yourself?

Try a timed practice session using only Installation Packages questions.