You can use and reference the following built-in variables in yum
commands and in all YUM configuration files (i.e. /etc/yum.conf
and all .repo
files in the /etc/yum.repos.d/
directory):
Variable | Description |
---|---|
$releasever | This is replaced with the package's version, as listed in |
$arch | This is replaced with your system's architecture, as listed by |
$basearch | This is replaced with your base architecture. For example, if |
The following code block is an example of how your /etc/yum.conf
file might look:
[main] cachedir=/var/cache/yum/$basearch/$releasever keepcache=0 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=3 [comments abridged]