Exam EX200 All QuestionsBrowse all questions from this exam
Question 46

SIMULATION -

A YUM source has been provided in the

http://instructor.example.com/pub/rhel6/dvd

Configure your system and can be used normally.

    Correct Answer:

    To configure a YUM repository in RHEL6, you need to create a repository configuration file in the /etc/yum.repos.d/ directory. The file should contain the necessary fields: [base], name, baseurl, and gpgcheck. Although the suggestion and discussions mention some of these points, a complete and correct configuration requires the 'enabled' field to ensure the repository is active. Here is a corrected configuration example for the provided repository URL: In the file /etc/yum.repos.d/base.repo, the content should be - [base] name=base baseurl=http://instructor.example.com/pub/rhel6/dvd gpgcheck=0 enabled=1 After saving this file, you can use 'yum list' to verify the repository configuration.

Discussion
Sz0p3n

enabled=1 is missing

kuome

name and baseurl are the mandatory fields

Kindolos1

wtf is even this question? is that even in english?

jahmad0730

this question needs to be edited to make sense, also answered properly

gcalcaterra

To configure a repo in RHEL9, this is an easy way: dnf config-manager --add-repo http://instructor.example.com/pub/rhel6/dvd Then just add to the generated file in /etc/yum.repos.d/ gpgcheck=0 Usually in RHEL9, repos to configure are BaseOS and AppStream.