< Day Day Up > |
Configuring YumAs mentioned earlier, Yum is primarily controlled by the contents of the yum.conf file and the /etc/yum.repos.d directory. Let's take a closer look at the contents of both of these so you can get a better understanding of how best to configure Yum. When you initially install Fedora, there is a default yum.conf that provides several switches for the Yum command. It basically saves you having to type in a number of switches and keeps Yum simple. By default, Yum is configured to do the following:
All these options are contained within the yum.conf file, letting you easily modify or even remove certain lines. For instance, you might need Yum to try only a maximum of five times, or you might need Yum to give you more visual information. You can add repository information into the yum.conf file, but as of Fedora Core 3, there has been a change in the way Yum handles repositories. New to Fedora 3 was the yum.repos.d folder that allows you to create individual configuration files for each repository. By default, Fedora comes with repositories for their base packages, updated packages, updated packages that are in testing, and the more unstable development packages. Only the base and updated packages are enabled by default. CAUTION Unless you really know what you are doing, you should avoid the more unstable repositories of fedora-updates-testing and fedora-development. These repositories contain bleeding-edge packages that can break your system. You have been warned! Opening a repository file shows you some details about the repository itself, including the path to it (either via HTTP, FTP, or local access), any lists of mirrors for that repository, whether that repository is enabled, and whether GPG checking is enabled. If you want to add a new repository, you need to find out a few things before you can successfully add it to either its own repo file under /etc/yum.repos.d or in the yum.conf file. |
< Day Day Up > |