PACCONF(1)

πŸ“¦ version 0.15.0, in arch rolling

πŸŽ€ PACCONF(1) πŸŽ€

okay bestie, this is the manual page for pacconf, and it’s literally here to help you query pacman’s configuration file. πŸ’–


✨ NAME ✨

pacconf β€” query pacman’s configuration file. 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

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

🌸 DESCRIPTION 🌸

pacconf queries configuration options out of pacman’s configuration file. If you don’t hand it any *directive*s, the entire configuration gets printed in a normalized format β€” yes, all of it. πŸ’…

By default, if you pass only a single directive, only its value gets printed, without the option name. For directives that don’t have a value, the directive name will be used as the value. periodt. ✨

The values displayed are the final values, exactly as pacman itself would parse them. All default values are set, Include directives are processed, $arch and $repo variables in repository servers are replaced, and Architecture will be replaced if it’s set to auto. πŸ”₯

πŸ’– OPTIONS πŸ’–

  • --config=path β€” set an alternate configuration file path. πŸ“
  • --root=path β€” set an alternate installation root. 🌱
  • --sysroot=path β€” set an alternate system root. See pacutils-sysroot(7). 🧚
  • --arch=arch β€” set an alternate architecture. πŸ—οΈ
  • --null[=sep] β€” 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. 🫧
  • --options β€” only display global settings from the [options] section. The [options] header itself is not printed. πŸ‘‘
  • --raw β€” 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. πŸ’€
  • --repo=name β€” only display directives for repository name. The repository header is not printed. πŸ“
  • --repo-list β€” list configured repositories. 🌈
  • --single β€” display only first value of multi-value options. πŸŽ€
  • --verbose β€” always show directive names even if only one directive is provided. 🌟
  • --help β€” display usage information and exit. πŸ™ˆ
  • --version β€” display version information and exit. πŸ’œ

⭐ EXAMPLES ⭐

Check if color is enabled:

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

mwah πŸ’‹ β€” this page comes from pacutils, dated 2025-12-04. PACCONF(1) out! πŸ’…

πŸ“¦ where this page comes from