The software described in this documentation is either in Extended Support or Sustaining Support. See https://www.oracle.com/us/support/library/enterprise-linux-support-policies-069172.pdf for more information.
Oracle recommends that you upgrade the software described by this documentation as soon as possible.
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 |
---|---|
| Directory used to store downloaded packages. |
| Logging level, from 0 (none) to 10 (all). |
| If set to 1, only update packages for the correct architecture. |
|
A space separated list of packages to exclude from
installs or updates, for example:
|
|
If set to 1, verify the authenticity of the packages
by checking the GPG signatures. You might need to set
|
| Pathname of the GPG public key file. |
| Maximum number of versions that can be installed of any one package. |
| If set to 0, remove packages after installation. |
| Pathname of the yum log file. |
| If set to 1, replace obsolete packages during upgrades. |
| If set to 1, enable plugins that extend the functionality of yum. |
| URL of a proxy server including the port number. See Section 2.3.1, “Configuring Use of a Proxy Server”. |
| Password for authentication with a proxy server. |
| User name for authentication with a proxy server. |
|
Directories where yum should look
for repository files with a |
See the yum.conf(5)
manual page for more
information.
The following listing shows an example [main]
section from the yum configuration file.
[main] cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgkey=file://media/RPM-GPG-KEY gpgcheck=1 pligins=1 installonly_limit=3
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.