2.2 Yum Configuration

The main configuration file for yum is
/etc/yum.conf. The global definitions for yum
are located under the [main] section heading of
the yum configuration file. The following table lists the
important directives.

Directive

Description

cachedir

Directory used to store downloaded packages.

debuglevel

Logging level, from 0 (none) to 10 (all).

exactarch

If set to 1, only update packages for the correct
architecture.

exclude

A space separated list of packages to exclude from
installs or updates, for example:
exclude=VirtualBox-4.? kernel*.

gpgcheck

If set to 1, verify the authenticity of the packages
by checking the GPG signatures. You might need to set
gpgcheck to 0 if a package is
unsigned, but you should be wary that the package
could have been maliciously altered.

It is possible to define repositories below the [main] section in
/etc/yum.conf or in separate repository
configuration files. By default, yum expects
any repository configuration files to be located in the
/etc/yum.repos.d directory unless you use the
reposdir directive to define alternate
directories.