← All LCA Flashcard Decks

Package Management & Software Installation Flashcards

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

Read the first 7 Package Management & Software Installation flashcards as text
  1. Which command lists all files installed by a specific RPM package named 'httpd'?

    Answer: rpm -ql httpd

    rpm -ql (query list) shows all files installed by the specified package.

  2. What does the 'dnf group install' command do on RHEL/CentOS systems?

    Answer: Installs a predefined collection of related packages

    dnf group install installs a package group, which is a curated set of related packages (e.g., 'Development Tools').

  3. Which file in a Debian-based system contains the list of APT repository sources?

    Answer: /etc/apt/sources.list

    The /etc/apt/sources.list file (and files in /etc/apt/sources.list.d/) define where APT looks for packages.

  4. What command would you use to find which RPM package owns the file /usr/bin/python3?

    Answer: rpm -qf /usr/bin/python3

    rpm -qf (query file) identifies the package that owns a specified installed file.

  5. Which dnf command is equivalent to 'yum localinstall package.rpm'?

    Answer: dnf install ./package.rpm

    In dnf, installing a local RPM file is done with 'dnf install ./package.rpm' using the explicit path.

  6. What is the purpose of the 'apt-cache showpkg' command?

    Answer: Displays package dependency and reverse-dependency information

    apt-cache showpkg displays detailed information about a package including its dependencies and packages that depend on it.

  7. Which command verifies the integrity of all installed RPM packages on a system?

    Answer: rpm -Va

    rpm -Va (verify all) checks all installed packages against the RPM database for file changes, permissions, and checksums.