EX200 Exam QuestionsBrowse all questions from this exam

EX200 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.

Show Answer
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

3 comments
Sign in to comment
Sz0p3n
May 26, 2021

enabled=1 is missing

kuome
Jul 16, 2023

name and baseurl are the mandatory fields

Kindolos1
Feb 9, 2023

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

jahmad0730
Jun 7, 2023

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

gcalcaterra
Jan 23, 2024

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.