it is recommended to define individual repositories in new or existing .repo files in the /etc/yum.repos.d/ directory. The values you define in individual [repository] sections of the /etc/yum.conf file override values set in the [main] section.
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_yum_and_yum_repositories
Although what mentor84 said is correct, what ultimately determines the path to the /etc/yum.repos.d/ is the values that you set in the /etc/yum.conf.
A tricky question. Just think of it as, "who is in charge of the yum.repos.d file? Oh yeah, the /etc/yum.comf..."
I agree: https://learning.lpi.org/en/learning-materials/101-500/102/102.5/102.5_01/
Managing Software Repositories
For yum the “repos” are listed in the directory /etc/yum.repos.d/. Each repository is represented by a .repo file, like CentOS-Base.repo.
Additional, extra repositories can be added by the user by adding a .repo file in the directory mentioned above, or at the end of /etc/yum.conf. However, the recommended way to add or manage repositories is with the yum-config-manager tool.
/etc/yum.repos.d/ (Correct)
set options for individual repositories by editing the [repository] sections in /etc/yum.conf and .repo files in the /etc/yum.repos.d/ directory;
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_yum_and_yum_repositories
In my opinion it has to be: /etc/yum.repos.d
- they are asking for a directory
- /etc/yum.conf not available in all distros, not in Ubuntu, not in Fedora, it exists in Centos and RedHat, but in both no path to a directory like /etc/yum.repos.d
It is extremely difficult to answer this question correctly, your always going to answer /etc/yum.repos.d because the question specifically asks which directory. Your never going to think of answering /etc/yum.conf because its a configuration file .
it is written as: The configuration file for yum and related utilities is located at /etc/yum.conf. This file contains one mandatory [main] section, which allows you to set Yum options that have global effect, and can also contain one or more [repository] sections, which allow you to set repository-specific options.
je pense la vrai reponse est
/etc/yum.repos.d
par ce que il nous demande le repertoire et non le fichier !
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
mentor84
Highly Voted 3 years, 10 months agocast7omadrid1
Highly Voted 4 years agoCuriousLinuxCat
2 years, 11 months ago3glag
3 years, 11 months agoJack67
Most Recent 9 months agoJos015
8 months, 1 week agoAmycert
1 year, 1 month agok3n_
1 year, 2 months agoUntaked
1 year, 11 months agowvdw1962
2 years, 2 months agoserlan
2 years, 2 months agostarout
2 years, 3 months agoMcReseau
2 years, 9 months agodilopezat
2 years, 6 months agopenguinx64
3 years agoRobert12
3 years, 2 months agomriron
3 years, 2 months agoMashkoorQadir
3 years, 2 months agodalziad
3 years, 6 months ago