Product SiteDocumentation Site

6.3.3. Using DNF Variables

Variables can be used only in the appropriate sections of the DNF configuration files, namely the /etc/dnf/dnf.conf file and all .repo files in the /etc/yum.repos.d/ directory. Repository variables include:
$releasever
Refers to the release version of operating system which DNF derives from information available in RPMDB.
$arch
Refers to the system’s CPU architecture. Valid values for $arch include: i586, i686 and x86_64.
$basearch
Refers to the base architecture of the system. For example, i686 and i586 machines both have a base architecture of i386, and AMD64 and Intel64 machines have a base architecture of x86_64.