101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 31


What is true regarding the configuration of yum? (Choose two.)

Show Answer
Correct Answer: CD

The configuration of package repositories in yum can be divided into multiple files, which is typically achieved by using separate files under the /etc/yum.repos.d/ directory. Additionally, yum repository configurations can include variables such as $basearch, which specifies the system's architecture, and $releasever, which denotes the operating system version. These features allow for flexible and dynamic repository management.

Discussion

9 comments
Sign in to comment
aMiPL
Mar 31, 2021

Correct: https://docs.fedoraproject.org/en-US/Fedora/17/html/System_Administrators_Guide/sec-Configuring_Yum_and_Yum_Repositories.html

blk_542
Nov 17, 2022

As per that same link, E might be also correct (as usual, the explanation is ambiguous): "The values you define in the [main] section of the /etc/yum.conf file may override values set in individual [repository] sections."

Adam_H
Dec 20, 2022

That sounds to me like it's saying the opposite of E. E is saying that /etc/yum.conf is ignored if the directory /etc/yum.repos.d/ contains files, while your quote is saying that any settings that you define/change in the configuration file can override values in the individual repos.

Jos015Options: CD
Jul 10, 2023

https://learning.lpi.org/en/learning-materials/101-500/102/102.5/102.5_01/ I think it could be C and D. E contradicts this: 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.

Tewodros89Options: CD
Dec 21, 2023

The correct statements regarding the configuration of yum are: C. The configuration of package repositories can be divided into multiple files. This is true. In the typical configuration, repository information is stored in separate files under the /etc/yum.repos.d/ directory. D. Repository configurations can include variables such as $basearch or $releasever. This is true. Yum configuration files support variables like $basearch (architecture of the system, e.g., x86_64) or $releasever (version of the operating system).

sheilawuOptions: DE
May 26, 2023

CORRECT ANSWER IS DE

ArmicheOptions: CD
Sep 12, 2023

It's correct

FoelixxxOptions: CE
Feb 11, 2024

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. I,m not sure about the D answer, i'm not on RH enviroment.

Ralf_GOptions: CD
Mar 1, 2024

I currently have a lecturer "at my disposal" and he says: C & D.

NinymoOptions: CD
Mar 24, 2024

Answer: CD

dpereiro4481Options: CD
Apr 25, 2024

C and D are the correct answer