101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 63


FILL BLANK -

What directory contains configuration files for additional yum repositories? (Specify the full path to the directory.)

Show Answer
Correct Answer:

The directory that contains configuration files for additional yum repositories is /etc/yum.repos.d/. This directory holds .repo files, which define the individual repositories. This is in contrast to /etc/yum.conf, which is a configuration file, not a directory. Thus, it does not directly store repository configurations but rather contains global settings for yum. Therefore, the correct answer is /etc/yum.repos.d/.

Discussion

15 comments
Sign in to comment
mentor84
May 11, 2020

It's asking about directory, not a file, so I believe the correct answer is: /etc/yum.repos.d/

cast7omadrid1
Mar 12, 2020

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

3glag
Mar 25, 2020

yes its right

CuriousLinuxCat
Apr 10, 2021

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

McReseau
May 26, 2021

/etc/yum.repos.d/

dilopezat
Aug 18, 2021

I think this is the right answer. /etc/yum.repos.d/

MashkoorQadir
Dec 16, 2020

/etc/yum.conf is not a directory wrong answer

Robert12
Jan 10, 2021

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 .

dalziad
Sep 8, 2020

je pense la vrai reponse est /etc/yum.repos.d par ce que il nous demande le repertoire et non le fichier !

mriron
Dec 19, 2020

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.

penguinx64
Feb 22, 2021

Fedora doesn't have yum.conf but Red Hat does

starout
Nov 26, 2021

Unequivocal /etc/yum.conf

serlan
Dec 21, 2021

/etc/yum.repos.d/

wvdw1962
Jan 13, 2022

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

Untaked
Mar 23, 2022

/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

k3n_
Jan 7, 2023

etc/yum.repos.d/ ChatGPT gives this answer

Amycert
Feb 6, 2023

etc/yum.repos.d/ is the correct by chatgpt

Jack67
Jun 13, 2023

yum.conf is the file, the correct answer is: /etc/yum.repos.d/

Jos015
Jul 11, 2023

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.