โ† All RHCSA Flashcard Decks

RHCSA Software Package Management Flashcards

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

Read the first 7 RHCSA Software Package Management flashcards as text
  1. You need to install a local RPM file that has dependencies in configured repositories. Which command handles this automatically?

    Answer: dnf install ./package.rpm

    'dnf install ./package.rpm' installs a local RPM and resolves dependencies from configured repositories; rpm -ivh does not resolve repo dependencies.

  2. Which command removes a package AND all packages that depend on it?

    Answer: dnf remove

    'dnf remove' automatically removes the package and any packages that would be broken without it.

  3. What does 'dnf module list' output's 'e' status indicator mean?

    Answer: The module stream is enabled

    In 'dnf module list' output, 'e' in the Status column means the stream is enabled (active/selected), while 'd' means disabled.

  4. A system needs to have kernel updates excluded permanently. Which file and directive would you use?

    Answer: Add 'exclude=kernel*' to /etc/dnf/dnf.conf

    Adding 'exclude=kernel*' to the [main] section of /etc/dnf/dnf.conf permanently excludes kernel packages from all DNF operations.

  5. Which rpm command verifies that a package's GPG signature is valid before trusting it?

    Answer: rpm --checksig

    'rpm --checksig' (or '-K') checks the GPG signature and digest of an RPM file to confirm it is authentic.

  6. After adding a new repo file to /etc/yum.repos.d/, what command rebuilds the DNF metadata cache?

    Answer: dnf makecache

    'dnf makecache' downloads and caches metadata for all enabled repositories, making future operations faster.

  7. What is the minimum set of fields required in a valid .repo file for DNF to use a repository?

    Answer: [repoid], name=, baseurl= (or mirrorlist=), enabled=

    A valid repo file needs a section ID, a name, and either baseurl or mirrorlist to locate packages; enabled defaults to 1 but is best practice to include.