Services and User Management
A systems administrator on a RHEL-based server needs one package that is only available in the CRB repository, which is disabled by default. The change must apply to this single transaction, and the repository configuration files must stay unchanged. Which command meets this requirement?
Show the answer
Correct answerC. dnf install --enablerepo=crb package_name
The --enablerepo option turns on a disabled repository only for the current dnf run and leaves the .repo files untouched. The config-manager --set-enabled command is tempting but writes enabled=1 to the configuration, making the change permanent.