From the course: Linux: Package Managers and Repositories

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Managing YUM repositories

Managing YUM repositories - Linux Tutorial

From the course: Linux: Package Managers and Repositories

Start my 1-month free trial

Managing YUM repositories

- [Instructor] On a system running YUM, we can take a look at the active repositories with YUM repolist. And we can see all of the repositories listed on the system, even the disabled ones with YUM repolist all. The output here shows the short name, a descriptive name, whether or not enabled and the number of packages available in each repository. Most of the repositories listed on my system are disabled. Because they're from previous versions of the distro left in place but disabled rather than removed entirely. We can manage the repositories by working with files in the etc yum.repos.d directory. Each file represents a repository or list of repositories. Let's take a look at centOS base here. Each individual repo is listed as a stanza of text with a name, the path to the repository, information about whether to use a GPG key and the path to that key. And optionally, whether it's enabled or not. I'll move to the bottom of…

Contents