Product SiteDocumentation Site

7. Configuring Access to Software Repositories

Fedora systems automatically use the Fedora Project repositories. These include Fedora Extras, the default source of packages for software that is not included with Fedora Core.

Fedora Extras Repositories for Previous Versions of Fedora Core

You must manually configure Fedora Core 3 systems to use Fedora Extras, using the instructions at http://fedora.redhat.com/projects/extras/. For additional packages for Fedora Core 1 and Fedora Core 2, refer to http://www.fedora.us/.
If the Fedora Project does not supply packages for a product, the manufacturer may provide or recommend a separate repository. Members of the community also maintain repositories to provide packages for Fedora systems. For example, http://www.jpackage.org/ distributes popular Java software as packages.

7.1. Adding a Repository as a Package Source

To add an extra repository, place a definition file in the /etc/yum.repos.d/ directory on your system. Package providers make the definition files for their repositories available on their web sites.

Definition File Extension

The names of repository definition files end with .repo.
You must have root access to add a file to the definitions directory. To copy the definition file example.repo, type this command:
su -c 'cp example.repo /etc/yum.repos.d/'
At the prompt, enter the password for the root account.
The configuration file for each repository should include a gpgkey setting. This setting specifies the location of a public key that verifies the packages provided by that repository. This public key is automatically imported the first time that you install software from the repository. If the configuration file provided does not include this setting, refer to Section 7.2, “Manually Authorizing Package Sources”.