rpm-rpmrc
rpm platform compatibility configuration
- Provided by: rpm (Version: 6.0.1-1build1)
- Report a bug
rpm platform compatibility configuration
VARIABLE: {ARCH|OS}: VALUE ...
VARIABLE: ARCH VALUE
/usr/lib/rpm/rpmrc
/usr/lib/rpm/<vendor>/rpmrc
/etc/rpmrc
~/.config/rpm/rpmrc
The low-level machine architecture and OS configuration in rpm is managed via a set of rpmrc files as defined by the rpmrc path. Most users never need to look at, much less touch these files.
Each file in the colon separated rpmrc path is read sequentially by rpm for configuration information. Tildes will be expanded to the value of the environment variable HOME. The first file in the path must exist, others are considered optional.
If a value is defined multiple times, the last entry wins. The default rpmrc path uses this to achieve the following hierarchy of platform configuration:
In older rpm versions the path of per-user rpmrc was ~/.rpmrc. This is still processed if it exists and the new configuration directory does not exist.
ARCH and OS relate to uname(2) machine and operating system information, but are not 1:1 equivalent. The following directives are supported in the rpmrc files:
arch_canon ARCH: CANON_ARCH ARCH_NUM
The number is not used for any calculations by rpm but must be present for historical reasons.
arch_compat: ARCH: COMPAT_ARCH ...
archcolor: ARCH COLOR
buildarch_compat: ARCH: COMPAT_ARCH ...
buildarchtranslate: ARCH: TRANSLATE_ARCH
optflags: ARCH OPTFLAGS
os_canon: OS: CANON_OS OS_NUM
The number is not used for any calculations by rpm but must be present for historical reasons.
os_compat: OS: COMPAT_OS ...
If XDG_CONFIG_HOME environment variable is set, it replaces ~/.config in the rpmrc path.