yum.conf(5) yum configuration file yum.conf(5)NAMEyum.conf - Configuration file for yum(8).
DESCRIPTION
Yum uses My program uses a configuration file called yum.conf. This
configuration file is searched for in the following places:
/etc/yum.conf
PARAMETERS
There are two types of sections in the yum.conf file: main and server.
Main defines all the global configuration options. The server sec‐
tion(s) define the entries for each server.
[main] options
The [main] section must exist for yum to do anything. It consists of
the following options:
cachedir
directory where yum should store its cache and db files.
debuglevel
debug level. valid numbers are 0-10. default is 2.
diskspacecheck
boolean - tells yum to check for diskspace issues or not default
is 1 (so yes do the check)
tolerant
1 or 0 - Tells yum to be tolerant of errors on the command line
with regard to packages. For example: if you request to install
foo, bar and baz and baz is installed; yum won't error out com‐
plaining that baz is already installed. same as -t on the com‐
mand line. Default to 0(not tolerant)
errorlevel
debug level. valid numbers are 0-2. default is 2.
gpghome
Directory to be used to look for the gpg public key ring default
is /root/.gnupg
gpgkeyring
alternative keyring filename. Default is use normal keyring
location
logfile
full directory and file name for where yum should write its log
file.
assumeyes
1 or 0 - tells yum whether or not to prompt you for confirmation
of actions. Same as -y on the command line. Defaults to 0.
replacefiles
1 or 0 - tells yum wether or not to replace conflicting files.
Same as -r on the command line. Defaults to 0.
pkgpolicy=[newest|last]
Default: newest. Package sorting order. When a package is
available from multiple servers, newest will install the most
recent version of the package found. last will sort the servers
alphabetically by serverid and install the version of the pack‐
age found on the last server in the resulting list. If you
don't understand the above then you're best left not including
this option at all and letting the default occur.
exclude
list of packages to exclude from updates or installs. This
should be a space separated list. Filename globs *,?,., etc are
allowed
exactarch
1 or 0 - set to 1 to make yum update only update the architec‐
tures of packages that you have installed. IE: with this enabled
yum will not install an i686 package to update an i386 package.
commands
list of functional commands to run if no functional commands are
specified on the command line. ie: commands = update foo bar
baz quux none of the short options (-y, -e, -d, etc) will be
taken in the field.
distroverpkg
package to use to determine the "version" of the distribution -
can be any package you have installed - defaults to redhat-
release.
[server] options
The server section(s) take the following form:
Example:
[serverid]
name=Some name for this server
baseurl=url://path/to/repository/
gpgcheck=[1|0]
serverid
must be a unique name for each server, one word.
baseurl
must be a url to the directory where the yum repository's 'head‐
ers' directory lives. ftp, http and file urls are allowed
name a human readable string describing the repository.
gpgcheck
either '1' or '0'. This tells yum whether or not it should per‐
form a gpg signature check on the packages gotten from this
server
VARIABLES
There are a number of variables you can use to ease maintenance of the
configuration file. They are only useful inside the name, baseurl and
commands fields in the config file.
$releasever
This will be replaced with the value of the version of the pack‐
age listed in distroverpkg. This defaults to the version of the
package redhat-release
$arch This will be replaced with your architecture as listed by
os.uname()[4] in pyhton.
$basearch
This will be replaced with your base architecture as they are
listed in archwork.py in yum. For example if your $arch is i686
your $basearch will be i386.
$YUM0-$YUM9
These will be replaced with the value of the shell environment
variable of the same name. If the shell environment variable
does not exist then they will not be replaced.
FILES
/etc/yum.conf
SEE ALSOyum(8)Seth Vidalyum.conf(5)