Useful Yum Variables - Red Hat ENTERPRISE LINUX 5 - DEPLOYMENT Deployment Manual

Hide thumbs Also See for ENTERPRISE LINUX 5 - DEPLOYMENT:
Table of Contents

Advertisement

gpgkey=URL
This option allows you to point to a URL of the ASCII-armoured GPG key file for a repository. This
option is normally used if yum needs a public key to verify a package and the required key was not
imported into the RPM database.
If this option is set, yum will automatically import the key from the specified URL. You will be
prompted before the key is installed unless you set assumeyes=1 (in the [main] section of /
etc/yum.conf) or -y (in a yum transaction).
exclude=<package name/s>
This option is similar to the exclude option in the [main] section of /etc/yum.conf. However,
it only applies to the repository in which it is specified.
includepkgs=<package name/s>
This option is the opposite of exclude. When this option is set on a repository, yum will only be
able to see the specified packages in that repository. By default, all packages in a repository are
visible to yum.

12.5. Useful yum Variables

The following is a list of variables you can use for both yum commands and yum configuration files (i.e.
/etc/yum.conf and .repo files).
$releasever
This is replaced with the package's version, as listed in distroverpkg. This defaults to the
version of the redhat-release package.
$arch
This is replaced with your system's architecture, as listed by os.uname() in Python.
$basearch
This is replaced with your base architecture. For example, if $arch=i686 then $basearch=i386.
$YUM0-9
This is replaced with the value of the shell environment variable of the same name. If the shell
environment variable does not exist, then the configuration file variable will not be replaced.
Useful yum Variables
145

Advertisement

Table of Contents
loading

Table of Contents