Services and User Management

An administrator wants to apply pending updates on a RHEL-based server, but the third-party repository with the ID epel must not be used for this one run. No configuration files may be modified. Which command meets this requirement?

Show the answer

Correct answerB. dnf update --disablerepo=epel

The --disablerepo option ignores the named repository for that single command and leaves configuration files unchanged. --exclude takes package names, so it would only skip a package called epel; it would not skip the repository.