Question 220
On a RHEL 10 administration workstation, the operator needs to display details about the available package. The package or lookup term, when required, is nmap-ncat. Which command fits?
- dnf search nmap-ncat
- dnf list --installed
- dnf repolist
- dnf info nmap-ncat
Explanation
Correct Answer
D:dnf info shows package metadata without changing its installation state. This performs the described action on this host. This matches the stated requirement to display details about the available package. By contrast, the plausible alternative `dnf list --installed` has the effect: dnf list --installed lists the local installed RPM set, rather than repository candidates. That operation does not accomplish the stated package-management task; that operation would not achieve the requested result. The correct action is scoped to On a RHEL 10 administration workstation, the operator needs to display details about the available package. The package or lookup term, when required, is, which is the object or case specified by the scenario.
Incorrect Answers
A:dnf search matches package names and descriptions for a search term. That operation does not accomplish the stated package-management task. The stated task is to display details about the available package. Instead, `dnf info nmap-ncat` is the relevant alternative because dnf info shows package metadata without changing its installation state. This performs the described action on this host.
B:dnf list --installed lists the local installed RPM set, rather than repository candidates. That operation does not accomplish the stated package-management task. The stated task is to display details about the available package. Instead, `dnf info nmap-ncat` is the relevant alternative because dnf info shows package metadata without changing its installation state. This performs the described action on this host.
C:dnf repolist enumerates enabled repositories without installing content. That operation does not accomplish the stated package-management task. The stated task is to display details about the available package. Instead, `dnf info nmap-ncat` is the relevant alternative because dnf info shows package metadata without changing its installation state. This performs the described action on this host.
Question 221
On a RHEL 10 administration workstation, the operator needs to list only packages currently installed. The package or lookup term, when required, is bind-utils. Which command fits?
- dnf list --installed
- dnf repolist
- dnf group list
- dnf history
Explanation
Correct Answer
A:dnf list --installed lists the local installed RPM set, rather than repository candidates. This performs the described action on this host. This matches the stated requirement to list only packages currently installed. By contrast, the plausible alternative `dnf group list` has the effect: dnf group list reports package groups, not individual RPM instances. That operation does not accomplish the stated package-management task; that operation would not achieve the requested result.
Incorrect Answers
B:dnf repolist enumerates enabled repositories without installing content. That operation does not accomplish the stated package-management task. The stated task is to list only packages currently installed. Instead, `dnf list --installed` is the relevant alternative because dnf list --installed lists the local installed RPM set, rather than repository candidates. This performs the described action on this host.
C:dnf group list reports package groups, not individual RPM instances. That operation does not accomplish the stated package-management task. The stated task is to list only packages currently installed. Instead, `dnf list --installed` is the relevant alternative because dnf list --installed lists the local installed RPM set, rather than repository candidates. This performs the described action on this host.
D:dnf history displays recorded DNF transactions and does not initiate a new one. That operation does not accomplish the stated package-management task. The stated task is to list only packages currently installed. Instead, `dnf list --installed` is the relevant alternative because dnf list --installed lists the local installed RPM set, rather than repository candidates. This performs the described action on this host.
Question 222
A RHEL 10 fleet inventory requires the architecture and full NEVRA of an available package from enabled repositories, not a prose search of descriptions. Which query is suited to that package metadata?
- dnf group list
- dnf repoquery --available bash
- dnf search bash
- dnf history
Explanation
Correct Answer
B:Repoquery available returns versioned package metadata for matching repository packages, including architecture and release identifiers.
Incorrect Answers
A:Group listing organizes groups and does not enumerate versioned builds of the individual bash RPM.
C:Search is oriented toward finding matching package names and descriptions rather than a complete NEVRA inventory.
D:Transaction history concerns past changes, not the current set of available versions in repositories.
Question 223
After an interrupted RPM deployment on RHEL 10, an installed package has missing vendor-owned files. The goal is to restore that package from its configured repository without removing it first. Which package operation is most direct?
- dnf group remove rsync
- dnf repolist
- dnf reinstall rsync
- dnf search rsync
Explanation
Correct Answer
C:Reinstall redeploys the requested installed RPM package and its packaged files without a separate remove-first workflow.
Incorrect Answers
A:Group remove targets group-level package sets and would move the system away from the restoration goal.
B:Repolist reports available sources but performs no package reinstall or repair.
D:Search only discovers packages and cannot restore files lost from an installed RPM.
Question 224
On a RHEL 10 administration workstation, the operator needs to search enabled repository package descriptions for a term. The package or lookup term, when required, is lsof. Which command fits?
- dnf list --installed
- dnf repolist
- dnf group list
- dnf search lsof
Explanation
Correct Answer
D:dnf search matches package names and descriptions for a search term. This performs the described action on this host. This matches the stated requirement to search enabled repository package descriptions for a term. By contrast, the plausible alternative `dnf group list` has the effect: dnf group list reports package groups, not individual RPM instances. That operation does not accomplish the stated package-management task; that operation would not achieve the requested result.
Incorrect Answers
A:dnf list --installed lists the local installed RPM set, rather than repository candidates. That operation does not accomplish the stated package-management task. The stated task is to search enabled repository package descriptions for a term. Instead, `dnf search lsof` is the relevant alternative because dnf search matches package names and descriptions for a search term. This performs the described action on this host.
B:dnf repolist enumerates enabled repositories without installing content. That operation does not accomplish the stated package-management task. The stated task is to search enabled repository package descriptions for a term. Instead, `dnf search lsof` is the relevant alternative because dnf search matches package names and descriptions for a search term. This performs the described action on this host.
C:dnf group list reports package groups, not individual RPM instances. That operation does not accomplish the stated package-management task. The stated task is to search enabled repository package descriptions for a term. Instead, `dnf search lsof` is the relevant alternative because dnf search matches package names and descriptions for a search term. This performs the described action on this host.
Question 225
On a RHEL 10 administration workstation, the operator needs to search enabled repository package descriptions for a term. The package or lookup term, when required, is tree. Which command fits?
- dnf search tree
- dnf list --installed
- dnf repolist
- dnf group list
Explanation
Correct Answer
A:dnf search matches package names and descriptions for a search term. This performs the described action on this host. This matches the stated requirement to search enabled repository package descriptions for a term. By contrast, the plausible alternative `dnf list --installed` has the effect: dnf list --installed lists the local installed RPM set, rather than repository candidates. That operation does not accomplish the stated package-management task; that operation would not achieve the requested result.
Incorrect Answers
B:dnf list --installed lists the local installed RPM set, rather than repository candidates. That operation does not accomplish the stated package-management task. The stated task is to search enabled repository package descriptions for a term. Instead, `dnf search tree` is the relevant alternative because dnf search matches package names and descriptions for a search term. This performs the described action on this host.
C:dnf repolist enumerates enabled repositories without installing content. That operation does not accomplish the stated package-management task. The stated task is to search enabled repository package descriptions for a term. Instead, `dnf search tree` is the relevant alternative because dnf search matches package names and descriptions for a search term. This performs the described action on this host.
D:dnf group list reports package groups, not individual RPM instances. That operation does not accomplish the stated package-management task. The stated task is to search enabled repository package descriptions for a term. Instead, `dnf search tree` is the relevant alternative because dnf search matches package names and descriptions for a search term. This performs the described action on this host.
Question 226
A security change request authorizes only packages carrying published security advisories to be upgraded on a RHEL 10 machine. Which DNF action narrows upgrades to those advisories?
- dnf history
- dnf upgrade --security
- dnf upgrade
- dnf install --allowerasing lsof
Explanation
Correct Answer
B:The security selector limits upgrade candidates to applicable security updates, satisfying the stated advisory-based scope.
Incorrect Answers
A:History shows past transactions but does not apply new security fixes.
C:An unrestricted upgrade may include feature and bug-fix releases outside the approved security-only change.
D:Allowerasing permits dependency removal during installation and has no specific security-advisory filter.
Question 227
On a RHEL 10 administration workstation, the operator needs to search enabled repository package descriptions for a term. The package or lookup term, when required, is vim-enhanced. Which command fits?
- dnf list --installed
- dnf repolist
- dnf search vim-enhanced
- dnf group list
Explanation
Correct Answer
C:dnf search matches package names and descriptions for a search term. This performs the described action on this host. This matches the stated requirement to search enabled repository package descriptions for a term. By contrast, the plausible alternative `dnf list --installed` has the effect: dnf list --installed lists the local installed RPM set, rather than repository candidates. That operation does not accomplish the stated package-management task; that operation would not achieve the requested result. The correct action is scoped to On a RHEL 10 administration workstation, the operator needs to search enabled repository package descriptions for a term. The package or lookup term, when, which is the object or case specified by the scenario.
Incorrect Answers
A:dnf list --installed lists the local installed RPM set, rather than repository candidates. That operation does not accomplish the stated package-management task. The stated task is to search enabled repository package descriptions for a term. Instead, `dnf search vim-enhanced` is the relevant alternative because dnf search matches package names and descriptions for a search term. This performs the described action on this host.
B:dnf repolist enumerates enabled repositories without installing content. That operation does not accomplish the stated package-management task. The stated task is to search enabled repository package descriptions for a term. Instead, `dnf search vim-enhanced` is the relevant alternative because dnf search matches package names and descriptions for a search term. This performs the described action on this host.
D:dnf group list reports package groups, not individual RPM instances. That operation does not accomplish the stated package-management task. The stated task is to search enabled repository package descriptions for a term. Instead, `dnf search vim-enhanced` is the relevant alternative because dnf search matches package names and descriptions for a search term. This performs the described action on this host.
Question 228
On a RHEL 10 administration workstation, the operator needs to remove the named installed rpm package. The package or lookup term, when required, is curl. Which command fits?
- dnf info curl
- dnf search curl
- dnf list --installed
- dnf remove curl
Explanation
Correct Answer
D:dnf remove uninstalls the named RPM and may remove dependencies that are no longer needed. This performs the described action on this host.
Incorrect Answers
A:dnf info shows package metadata without changing its installation state. That operation does not accomplish the stated package-management task. The stated task is to remove the named installed rpm package. Instead, `dnf remove curl` is the relevant alternative because dnf remove uninstalls the named RPM and may remove dependencies that are no longer needed. This performs the described action on this host.
B:dnf search matches package names and descriptions for a search term. That operation does not accomplish the stated package-management task. The stated task is to remove the named installed rpm package. Instead, `dnf remove curl` is the relevant alternative because dnf remove uninstalls the named RPM and may remove dependencies that are no longer needed. This performs the described action on this host.
C:dnf list --installed lists the local installed RPM set, rather than repository candidates. That operation does not accomplish the stated package-management task. The stated task is to remove the named installed rpm package. Instead, `dnf remove curl` is the relevant alternative because dnf remove uninstalls the named RPM and may remove dependencies that are no longer needed. This performs the described action on this host.
Question 229
On a RHEL 10 administration workstation, the operator needs to search enabled repository package descriptions for a term. The package or lookup term, when required, is bash-completion. Which command fits?
- dnf search bash-completion
- dnf list --installed
- dnf repolist
- dnf group list
Explanation
Correct Answer
A:dnf search matches package names and descriptions for a search term. This performs the described action on this host. This matches the stated requirement to search enabled repository package descriptions for a term. By contrast, the plausible alternative `dnf repolist` has the effect: dnf repolist enumerates enabled repositories without installing content. That operation does not accomplish the stated package-management task; that operation would not achieve the requested result.
Incorrect Answers
B:dnf list --installed lists the local installed RPM set, rather than repository candidates. That operation does not accomplish the stated package-management task. The stated task is to search enabled repository package descriptions for a term. Instead, `dnf search bash-completion` is the relevant alternative because dnf search matches package names and descriptions for a search term. This performs the described action on this host.
C:dnf repolist enumerates enabled repositories without installing content. That operation does not accomplish the stated package-management task. The stated task is to search enabled repository package descriptions for a term. Instead, `dnf search bash-completion` is the relevant alternative because dnf search matches package names and descriptions for a search term. This performs the described action on this host.
D:dnf group list reports package groups, not individual RPM instances. That operation does not accomplish the stated package-management task. The stated task is to search enabled repository package descriptions for a term. Instead, `dnf search bash-completion` is the relevant alternative because dnf search matches package names and descriptions for a search term. This performs the described action on this host.
Question 230
The team has identified DNF transaction 17 as the accidental installation that changed the service stack. Before reapplying any new package policy, which operation requests reversal of THAT transaction?
- dnf makecache
- dnf history undo 17
- dnf history info 17
- dnf repolist --all
Explanation
Correct Answer
B:History undo asks DNF to reverse the recorded operations, subject to present package availability and dependency constraints.
Incorrect Answers
A:Rebuilding metadata caches may aid a later install but has no transaction reversal semantics.
C:History info inspects the transaction and does not change the installed package state.
D:Listing all repositories cannot reverse package installation recorded in the transaction database.
Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests