alpm-srcinfo-format-packages(1)

alpm-srcinfo-format-packages1

Format a srcinfo file's packages from a path or `stdin`

Usage

alpm-srcinfo {format-packages [{-s | --schema}] <-a | --architecture> [{-o | --output-format}] [{-p | --pretty}] [{-h | --help}] [FILE]}

Overview

Format a SRCINFO file's packages from a path or `stdin`

Read, validate and print all of the SRCINFO's packages in their final representation for a specific architecture. If the file is valid, the program prints the data in the requested file format to stdout and returns with an exit status of 0.

Options

-s, --schema <VERSION>

Provide the SRCINFO schema version to use.

If no schema version is provided, it will be deduced from the file itself.

-a, --architecture <ARCHITECTURE>

The selected architecture that should be used to interpret the SRCINFO file.

Only [split-]packages that are applicable for this architecture will be returned.

-o, --output-format <OUTPUT_FORMAT> [default: json]

Provide the output format

Possible values:

•

json: The JSON output format

-p, --pretty

Pretty-print the output.

Only applies to formats that support pretty output and is otherwise ignored.

-h, --help

Print help (see a summary with '-h')

[FILE]

An optional input file path to read from

If no file is specified, stdin is read from and expected to contain PKGINFO data to validate.

From alpm-srcinfo 0.7.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.