XK0-004 · Question #373
A new packages repository named repo10 has been installed on mirror site. A Linux administrator wants to use this new repository for local package installations. In which of the following locations…
The correct answer is A. /etc/yum.reps.d/repo10.Repo. On Red Hat-based Linux systems (RHEL, CentOS, Fedora), individual YUM/DNF repository configuration files must be placed in the /etc/yum.repos.d/ directory with a .repo file extension. The package manager automatically scans this directory and loads any file ending in .repo…
Question
A new packages repository named repo10 has been installed on mirror site. A Linux administrator wants to use this new repository for local package installations. In which of the following locations should the administrator store the configuration information for the repo10 repository?
Options
- A/etc/yum.reps.d/repo10.Repo
- B/etc/yum_repo.d/repo10
- C/etc/yum.reps.d/repo10
- D/etc/yum.conf
How the community answered
(28 responses)- A89% (25)
- C4% (1)
- D7% (2)
Explanation
On Red Hat-based Linux systems (RHEL, CentOS, Fedora), individual YUM/DNF repository configuration files must be placed in the /etc/yum.repos.d/ directory with a .repo file extension. The package manager automatically scans this directory and loads any file ending in .repo. Option A reflects this convention - note that the exam question contains a minor typo ('reps' instead of 'repos'), but among the four choices it is the only one that includes the required .repo file extension, making it the best answer. Option B uses an incorrect path with an underscore and no .repo extension. Option C uses the same typo but critically omits the .repo extension, which would cause the file to be ignored by yum/dnf. Option D (/etc/yum.conf) is the main yum configuration file for global settings, not the appropriate location for individual repository definitions.
Topics
Community Discussion
No community discussion yet for this question.