.ie \n(.g .ds Aq \(aq .el .ds Aq ' .TH alpm-srcinfo-format-packages 1 "alpm-srcinfo-format-packages " .SH NAME alpm\-srcinfo\-format\-packages \- Format a SRCINFO file\*(Aqs packages from a path or `stdin` .SH SYNOPSIS \fBalpm\-srcinfo format\-packages\fR [\fB\-s\fR|\fB\-\-schema\fR] <\fB\-a\fR|\fB\-\-architecture\fR> [\fB\-o\fR|\fB\-\-output\-format\fR] [\fB\-p\fR|\fB\-\-pretty\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fIFILE\fR] .SH DESCRIPTION Format a SRCINFO file\*(Aqs packages from a path or `stdin` .PP Read, validate and print all of the SRCINFO\*(Aqs 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. .SH OPTIONS .TP \fB\-s\fR, \fB\-\-schema\fR \fI\fR Provide the SRCINFO schema version to use. If no schema version is provided, it will be deduced from the file itself. .TP \fB\-a\fR, \fB\-\-architecture\fR \fI\fR The selected architecture that should be used to interpret the SRCINFO file. Only [split\-]packages that are applicable for this architecture will be returned. .TP \fB\-o\fR, \fB\-\-output\-format\fR \fI\fR [default: json] Provide the output format .br .br \fIPossible values:\fR .RS 14 .IP \(bu 2 json: The JSON output format .RE .TP \fB\-p\fR, \fB\-\-pretty\fR Pretty\-print the output. Only applies to formats that support pretty output and is otherwise ignored. .TP \fB\-h\fR, \fB\-\-help\fR Print help (see a summary with \*(Aq\-h\*(Aq) .TP [\fIFILE\fR] 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.