Most Linux distributions that use yum for updating files come with yum ready to use; you do not need to configure it. This section describes the yum configuration files for those users who want to modify them. The primary configuration file, /etc/yum.conf, holds global settings. The first example shows a typical yum.conf file:
$ cat /etc/yum.conf[main]cachedir=/var/cache/yum/$basearch/$releaseverkeepcache=0debuglevel=2logfile=/var/log/yum.logexactarch=1obsoletes=1gpgcheck=1plugins=1installonly_limit=3...# PUT YOUR REPOS HERE OR IN separate files named file.repo# in /etc/yum.repos.d
The section labeled [main] defines global configuration options. The cachedir specifies the directory in which yum stores downloaded packages, ...