Question 240
An administrator maintains a RHEL 10 repository definition teamrepo-07. The immediate requirement is to disable an existing repository named teamrepo-07. A review considers `dnf repolist --all` as an alternative. Its relevant behavior is: The --all option includes enabled and disabled repository definitions. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
Explanation
Correct Answer
config-manager --disable prevents DNF selecting this repository. This matches the stated requirement to disable an existing repository named teamrepo-07. By contrast, the plausible alternative `dnf config-manager --enable teamrepo-07` has the effect: config-manager --enable makes an existing DNF repository available It produces a different enabled/disabled repository state or listing; that operation would not achieve the requested result.
Incorrect Answers
The --all option includes enabled and disabled repository definitions It produces a different enabled/disabled repository state or listing. The stated task is to disable an existing repository named teamrepo-07. Instead, `dnf config-manager --disable teamrepo-07` is the relevant alternative because config-manager --disable prevents DNF selecting this repository.
The --disabled filter excludes enabled sources from the listing It produces a different enabled/disabled repository state or listing. The stated task is to disable an existing repository named teamrepo-07. Instead, `dnf config-manager --disable teamrepo-07` is the relevant alternative because config-manager --disable prevents DNF selecting this repository.
config-manager --enable makes an existing DNF repository available It produces a different enabled/disabled repository state or listing. The stated task is to disable an existing repository named teamrepo-07. Instead, `dnf config-manager --disable teamrepo-07` is the relevant alternative because config-manager --disable prevents DNF selecting this repository.






Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests