aur-repo

aur-repo is a utility for managing and querying local file:// pacman repositories.

Synopsis

aur repo [operation] [options]

Description

This command allows you to interact with your local repositories to list contents, check for updates against the AUR, and find repository paths. If you have multiple local repositories defined in pacman.conf, you must specify which one to use with the -d option.

Operations

  • --status (Default): Print status information about the repository, including its name, root directory, and database path.
  • -l, --list: List the contents of the repository (pkgname <tab> pkgver).
  • -t, --table: List contents with more detail, including dependencies.
  • -u, --upgrades: Check for updates against the AUR using aur-vercmp.
  • -J, --json: Output repository contents as a single JSON object.
  • --jsonl: Output repository contents as JSON Lines (one JSON object per line).
  • -f FORMAT, --format=FORMAT: Format output using a specified string, similar to expac. This internally uses aur-format.
  • -F FIELD, --attr=FIELD: List a specific attribute for all packages in the repository.
  • --list-repo: List the names of all configured local repositories.
  • --list-path: List the absolute paths to all configured local repository databases.
  • --path: Print the absolute path to the selected repository's database.

Options

  • -d NAME, --database=NAME: Specify the name of the repository to operate on.
  • -r PATH, --root=PATH: Specify the root directory of the repository, overriding pacman.conf.
  • -c FILE, --config=FILE: Use an alternative pacman.conf file.
  • -q, --quiet: Shorten the output, typically printing only package names for --list and --upgrades.
  • -a, --all: When used with --upgrades, show packages that are older or have the same version in the AUR.
  • -s REGEXP, --search=REGEXP: Filter results by a regular expression.
  • --search-by=FIELD: Specify which package attribute to search against with --search. Defaults to Name.
  • -S, --sync: Query a repository from pacman's sync database (/var/lib/pacman/sync) instead of a local file:// path.
  • -m, --missing: Do not error if repository paths do not exist when using --status, --path, or --list-path.