Linux+ CompTIA Linux+ Linux Installation and Package Management 3 — Questions and Answers
Question 1: Which partitioning scheme supports more than four primary partitions and disks larger than 2TB?
- GPT (GUID Partition Table) (Correct answer)
- MBR (Master Boot Record)
- BSD disklabel
- LVM Physical Volume
Correct answer: GPT (GUID Partition Table)
GPT supports up to 128 partitions by default and disks larger than 2TB, overcoming the limitations of the older MBR scheme.
Question 2: Which dnf command downloads a package's RPM file to the current directory WITHOUT installing it?
- dnf download <package> (Correct answer)
- dnf fetch <package>
- dnf get <package>
- dnf pull <package>
Correct answer: dnf download <package>
`dnf download` retrieves the RPM file from the configured repositories without performing installation.
Question 3: A Linux system using UEFI firmware requires a special partition. Which filesystem type must this partition use?
- FAT32 (vfat) (Correct answer)
- ext4
- XFS
- btrfs
Correct answer: FAT32 (vfat)
The EFI System Partition (ESP) must be formatted as FAT32 (vfat) because UEFI firmware can only read this filesystem natively.
Question 4: Which file contains the list of trusted GPG keys used by RPM to verify package signatures?
- /etc/pki/rpm-gpg/ (Correct answer)
- /etc/rpm/keys/
- /var/lib/rpm/gpg/
- /usr/share/rpm-gpg/
Correct answer: /etc/pki/rpm-gpg/
RPM GPG keys are stored in /etc/pki/rpm-gpg/ and imported into the RPM database using `rpm --import`.
Question 5: Which apt-cache command shows reverse dependencies — packages that depend on a given package?
- apt-cache rdepends <package> (Correct answer)
- apt-cache depends --reverse <package>
- apt-cache showdep <package>
- apt-cache reverse <package>
Correct answer: apt-cache rdepends <package>
`apt-cache rdepends` lists all packages that declare a dependency on the specified package.
Question 6: During a network-based PXE installation of Linux, which service provides the installation files to the client?
- TFTP / HTTP / NFS (Correct answer)
- DNS only
- DHCP only
- LDAP
Correct answer: TFTP / HTTP / NFS
PXE boot uses DHCP to assign an IP, TFTP to deliver the bootloader and kernel, and HTTP or NFS to serve the installation tree.
Question 7: Which command upgrades only already-installed packages on a Debian-based system without installing new ones or removing any?
- apt upgrade (Correct answer)
- apt full-upgrade
- apt dist-upgrade
- apt update
Correct answer: apt upgrade
`apt upgrade` updates installed packages to newer versions but never installs new packages or removes existing ones to resolve conflicts.
Which partitioning scheme supports more than four primary partitions and disks larger than 2TB?