4.8. Management of YUM Repositories
When you install a Fedora system, files that declare the base repositories are already installed and the base repositories enabled and available, in fact, during the installation process Anaconda must have given you the opportunity to enable some other repositories. In this section we will review the ways to add new repositories and how to adjust their settings in a particular way to suit the needs of the administrator.
4.8.1. Add New Repositories
Two methods are used to add new repositories, most suitable for the systems administrator is the provision of the files that make up the repository via an installable rpm file or by supplying the .repo configuration simple text file from the repository owners.
Example with a rpm file that configures the desired repository:
$ su -
<password>
# rpm -vhi http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
Example with a simple .repo text file:
$ su -
<password>
# cd /etc/yum.repos.d/
# wget http://repos.fedorapeople.org/repos/mmcgrath/nagios/fedora-nagios.repo
....
Saving to: “fedora-nagios.repo”
100%[======================================>] 220 --.-K/s in 0s
2010-07-30 18:30:14 (24.9 MB/s) - “fedora-nagios.repo” saved [220/220]
Certainly it is always possible to launch your favorite text editor and start a manual configuration.