Configuring Yum

 < Day Day Up > 

Configuring Yum

As 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:

  • Keep a cache of headers in /var/cache/yum.

  • Give minimal onscreen information during processing.

  • Keep a log-file in /var/log/yum.log.

  • Download only the most up-to-date packages.

  • Be tolerant of errors in the process.

  • Match packages to your processor architecture.

  • Have a maximum retry limit of 20 times.

  • Check for obsolete packages.

  • Use GPG keys to ensure the identities of packages.

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 > 


    Red Hat Fedora 4 Unleashed
    Red Hat Fedora 4 Unleashed
    ISBN: 0672327929
    EAN: 2147483647
    Year: 2006
    Pages: 361

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net