Which command adds the Fedora EPEL repository for yum?

Prepare for the Red Hat Certified Systems Admin Exam EX200. Enhance your skills with interactive quizzes, flashcards, and detailed explanations. Ace your certification exam today!

Multiple Choice

Which command adds the Fedora EPEL repository for yum?

Explanation:
To register a new repository with yum, you need a repository definition so yum knows where to fetch packages. The direct way shown is to use a command from yum-utils that adds the repository by URL. This creates the appropriate .repo entry under /etc/yum.repos.d (including fields like baseurl and gpgkey) so yum can query that source for metadata and packages. Manually editing a file with an editor can work but is more error-prone and not as straightforward. A single setting like gpgcheck=0 or a line like baseurl=... are parts of a repo definition, not the action of adding the repo itself.

To register a new repository with yum, you need a repository definition so yum knows where to fetch packages. The direct way shown is to use a command from yum-utils that adds the repository by URL. This creates the appropriate .repo entry under /etc/yum.repos.d (including fields like baseurl and gpgkey) so yum can query that source for metadata and packages. Manually editing a file with an editor can work but is more error-prone and not as straightforward. A single setting like gpgcheck=0 or a line like baseurl=... are parts of a repo definition, not the action of adding the repo itself.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy