PACCONF(1) pacconf PACCONF(1)

pacconf - query pacman's configuration file

pacconf [options] [<directive>...]
pacconf (--repo-list|--help|--version)

Query configuration options from pacman's configuration file. If no directives are provided, the entire configuration will be printed in a normalized format. By default, if only a single directive is provided, only its value will be printed without the option name. For directives without a value, the directive name will be used as the value.

The values displayed are the final values as would be parsed by pacman itself. All default values are set, "Include" directives are processed, $arch and $repo variables in repository servers are replaced, and "Architecture" will be replaced if set to "auto".

Set an alternate configuration file path.
Set an alternate installation root.
Set an alternate system root. See pacutils-sysroot(7).
Set an alternate architecture.
Set an alternate separator for values parsed from stdin. By default a newline "\n" is used as the separator. If --null is used without specifying sep "NUL" will be used.
Only display global settings from the "[options]" section. The "[options]" header itself is not printed.
Display unmodified values. "Include" directives will be processed, but defaults will not be set, $arch and $repo variables in repository servers will not be replaced, and "Architecture" will not be replaced if set to "auto".
Only display directives for repository name. The repository header is not printed.
List configured repositories.
Display only first value of multi-value options.
Always show directive names even if only one directive is provided.
Display usage information and exit.
Display version information and exit.

color=$(pacconf color)
[[ -n $color ]] && ... # print something in color
2024-04-16 pacutils