← All RHCE Flashcard Decks

Package Management and Software Installation Flashcards

7 cards from real RHCE 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 and Software Installation flashcards as text
  1. Which command installs a package named 'httpd' using DNF on RHEL 8/9?

    Answer: dnf install httpd

    DNF is the default package manager on RHEL 8/9 and uses 'dnf install ' to install packages.

  2. Which directory contains DNF/YUM repository configuration files on RHEL?

    Answer: /etc/yum.repos.d/

    Repository .repo files are stored in /etc/yum.repos.d/ and are read by both YUM and DNF.

  3. What DNF command lists all currently installed packages on the system?

    Answer: dnf list installed

    'dnf list installed' displays all packages that are currently installed on the system.

  4. Which RPM option is used to query which package owns a specific file?

    Answer: rpm -qf /path/to/file

    'rpm -qf' (query file) shows which installed package owns the specified file path.

  5. How do you enable a DNF module stream named 'nodejs:18' on RHEL 8/9?

    Answer: dnf module enable nodejs:18

    'dnf module enable :' enables the specified stream without installing any packages.

  6. Which command installs a locally downloaded RPM file '/tmp/mypkg.rpm' while automatically resolving dependencies?

    Answer: Both B and C are correct

    Both 'dnf install /path/to/file.rpm' and 'dnf localinstall' resolve dependencies; plain 'rpm -i' does not resolve deps automatically.

  7. Which command removes the 'vsftpd' package along with any packages that depend on it?

    Answer: dnf remove vsftpd

    'dnf remove' uninstalls the specified package and any packages that depend on it, making it the standard removal command.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. redhat.com — Test delivery, renewal, score validity, exam format, score release · verified Oct 2026