From the course: Linux: Package Management for CentOS
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Manage repositories - Linux Tutorial
From the course: Linux: Package Management for CentOS
Manage repositories
- (Narrator) Repository configuration information is stored in /etc/yum.repos.d/. Let's cd there and look around. Type in cd space /etc/yum.repos.d, and hit enter. Now type in ls. All repository files in this directory have to end in .repo. If they don't, Yum will ignore them. Let's view a repository file with vi. Type in vi space CentOS-Base.repo. That's the CentOS-Base repository. Hit Enter. There are four repositories in this one file. We'll focus on the CentOS-Base repository. Each repository name is in square brackets. The next line down is the descriptive name for the repository. The third line is the list of repository mirrors. Yum will try to find the fastest mirror to use. The fourth line is commented out. If there wasn't a mirror list, then the repository would have a static line with the URL to the repository. The fifth line is the gpgcheck boolean. Zero turns off gpg signature checking, and one turns it on. The last line is the location of the gpgkey. To disable a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.