exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 31 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 31
Topic #: 1
[All LFCS Questions]

SIMULATION -
In which directory must definition files be placed to add additional repositories to yum?

Show Suggested Answer Hide Answer
Suggested Answer: /etc/yum.repos.d -or- /etc/yum.repos.d/ -or- yum.repos.d -or- yum.repos.d/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Buruguduystunstugudunstuy
6 months, 1 week ago
Definition files must be placed in the /etc/yum.repos.d/ directory to add additional repositories to yum. Yum is a package management tool that is used to install, update, and remove packages on Linux systems. It uses a repository system to manage packages, and it can be configured to use multiple repositories. To add additional repositories to yum, you need to create definition files that specify the location and configuration of the repositories. These definition files must be placed in the /etc/yum.repos.d/ directory. For example: [myrepo] name=My Repository baseurl=http://example.com/repo enabled=1 gpgcheck=1 gpgkey=http://example.com/key This is the contents of a definition file that adds a repository named "My Repository" to yum. It specifies the base URL of the repository, and it enables GPG signature checking for the packages.
upvoted 1 times
Buruguduystunstugudunstuy
6 months, 1 week ago
To add this repository to yum, you would save the definition file as /etc/yum.repos.d/myrepo.repo. Then, you can use yum to install, update, and remove packages from the repository. For example: yum install package yum update package yum remove package These commands will install, update, or remove the package from the "My Repository" repository, respectively.
upvoted 1 times
...
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago