Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Linux Foundation Certified System Administrator · Linux Foundation
Hotspot Scenario
Select the appropriate option to complete the statement. Click Check Answer below to see the marked solution.
Hotspot Solution:
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= enabled=1 gpgcheck=1 gpgkey= 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.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
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.
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.