← All Linux Flashcard Decks

CompTIA Linux+ Linux Installation and Package Management Flashcards

7 cards from real Linux practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 CompTIA Linux+ Linux Installation and Package Management flashcards as text
  1. Which command displays detailed information about an installed RPM package, including version, release, and description?

    Answer: rpm -qi

    The `rpm -qi` command queries (-q) package information (-i) including name, version, release, architecture, and description.

  2. During a Linux installation, which partition mount point is REQUIRED for the system to boot successfully?

    Answer: /boot

    The /boot partition holds the kernel and bootloader files (GRUB), which are essential for the system to initialize and boot.

  3. A system administrator needs to add a new repository to a RHEL-based system so dnf can find packages from it. Which file location is appropriate?

    Answer: /etc/yum.repos.d/

    Custom repository definitions are placed as .repo files inside /etc/yum.repos.d/, which dnf scans for available package sources.

  4. Which apt command removes a package AND its configuration files from a Debian-based system?

    Answer: apt purge

    `apt purge` removes the package binary AND its configuration files, whereas `apt remove` leaves configuration files behind.

  5. When compiling software from source, what is the correct sequence of commands?

    Answer: ./configure → make → make install

    ./configure checks dependencies and generates a Makefile, make compiles the code, and make install copies binaries to the system.

  6. Which command lists all files installed by a specific Debian package without running the package installation?

    Answer: dpkg -L

    `dpkg -L` (uppercase L) lists all files belonging to an already-installed package by reading the dpkg database.

  7. A technician wants to verify the integrity of a downloaded RPM file before installing it. Which command accomplishes this?

    Answer: Both A and C are correct

    `rpm -K` and `rpm --checksig` are synonymous commands that verify the GPG signature and MD5 checksum of an RPM file.