table of contents
| RPM-RPMRC(5) | File Formats Manual | RPM-RPMRC(5) |
NAME¶
rpm-rpmrc - rpm platform compatibility configuration
SYNOPSIS¶
VARIABLE: {ARCH|OS}: VALUE ...
VARIABLE: ARCH VALUE
FILES¶
/usr/lib/rpm/rpmrc
/usr/lib/rpm/<vendor>/rpmrc
/etc/rpmrc
~/.config/rpm/rpmrc
DESCRIPTION¶
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:
- 1.
- Generic rpm factory defaults
- 2.
- Vendor (distribution) specific configuration
- 3.
- Host specific configuration
- 4.
- User specific 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.
CONFIGURATION¶
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
- 0 means none (noarch packages and similar)
- 1 means 32-bit
- 2 means 64-bit
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 ...
ENVIRONMENT¶
If XDG_CONFIG_HOME environment variable is set, it replaces ~/.config in the rpmrc path.
SEE ALSO¶
| 2025-11-07 | RPM 6.0.0 |