.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "EXPAC 1" .TH EXPAC 1 2024-03-18 "expac 10" "expac Manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME expac \- alpm data extraction utility .SH SYNOPSIS .IX Header "SYNOPSIS" Usage: \fIexpac\fR [options] targets... .SH DESCRIPTION .IX Header "DESCRIPTION" expac is a data extraction tool for alpm databases. It features printf-like flexibility and aims to be used as a simple tool for other pacman based utilities which don't link against the library. It uses pacman.conf as a config file for locating and loading your local and sync databases. .PP Invoking expac consists of supplying a format string, which is generally described by one to many of the formatting tokens (see the \fBFORMATTING\fR section), any relevant options and zero to many targets. The format string \&\fBmust\fR be the first non-option argument. Targets can be a simple package name, a query string (in the case of a search), or in repo/package syntax when the \&\-sync option is supplied. .SH OPTIONS .IX Header "OPTIONS" .IP "\fB\-Q, \-\-query\fR" 4 .IX Item "-Q, --query" Search the local database for provided targets. This is the default behavior. .IP "\fB\-S, \-\-sync\fR" 4 .IX Item "-S, --sync" Search the sync databases for provided targets. .IP "\fB\-s, \-\-search\fR" 4 .IX Item "-s, --search" Search for packages matching the strings specified by targets. This is a boolean AND query and regex is allowed. .IP "\fB\-g, \-\-group\fR" 4 .IX Item "-g, --group" Return packages matching the specified targets as package groups. .IP "\fB\-\-config\fR " 4 .IX Item "--config " Read from \fIfile\fR for alpm initialization instead of \fI/etc/pacman.conf\fR. .IP "\fB\-H, \-\-humansize\fR " 4 .IX Item "-H, --humansize " Format package sizes in SI units according to \fIsize\fR. Valid options are: .Sp .Vb 1 \& B, K, M, G, T, P, E, Z, Y .Ve .IP "\fB\-1, \-\-readone\fR" 4 .IX Item "-1, --readone" Stop searching after the first result. This only has an effect on \-S operations without \-s. .IP "\fB\-d, \-\-delim\fR " 4 .IX Item "-d, --delim " Separate each package with the specified \fIstring\fR. The default value is a newline character. .IP "\fB\-l, \-\-listdelim\fR " 4 .IX Item "-l, --listdelim " Separate each list item with the specified \fIstring\fR. Lists are any interpreted sequence specified with a capital letter. The default value is two spaces. .IP "\fB\-p, \-\-file\fR" 4 .IX Item "-p, --file" Interpret targets as paths to local files. .IP "\fB\-t, \-\-timefmt\fR " 4 .IX Item "-t, --timefmt " Output time described by the specified \fIformat\fR. This string is passed directly to \fBstrftime\fR\|(3). The default format is \f(CW%c\fR. .IP "\fB\-v, \-\-verbose\fR" 4 .IX Item "-v, --verbose" Output more. `Package not found' errors will be shown, and empty field values will display as 'None'. .IP "\fB\-V, \-\-version\fR" 4 .IX Item "-V, --version" Display version information and quit. .IP "\fB\-h, \-\-help\fR" 4 .IX Item "-h, --help" Display the help message and quit. .SH FORMATTING .IX Header "FORMATTING" The format argument allows the following interpreted sequences: .PP .Vb 1 \& %a architecture \& \& %B backup files \& \& %b build date \& \& %C conflicts with (no version strings) \& \& %D depends on \& \& %d description \& \& %E depends on (no version strings) \& \& %e package base \& \& %f filename (only with \-S) \& \& %F files (only with \-Q) \& \& %g base64 encoded PGP signature (only with \-S) \& \& %G groups \& \& %H conflicts with \& \& %h sha256sum \& \& %i has install scriptlet (only with \-Q) \& \& %k download size (only with \-S) \& \& %l install date (only with \-Q) \& \& %L licenses \& \& %m install size \& \& %M modified backup files (only with \-Q) \& \& %n package name \& \& %N required by \& \& %O optional deps \& \& %o optional deps (no descriptions) \& \& %p packager name \& \& %P provides \& \& %R replaces (no version strings) \& \& %r repo \& \& %s md5sum \& \& %S provides (no version strings) \& \& %T replaces \& \& %u project URL \& \& %V package validation method \& \& %v version \& \& %w install reason (only with \-Q) \& \& %! result number (auto\-incremented counter, starts at 0) \& \& %% literal % .Ve .PP Note that for any lowercase tokens aside from \f(CW%m\fR and \f(CW%k\fR, full printf support is allowed, e.g. %\-20n. This does not apply to any list based, date, or numerical output. .PP Standard backslash escape sequences are supported, as per \fBprintf\fR\|(1). .SH EXAMPLES .IX Header "EXAMPLES" Emulate pacman's search function: .Sp .Vb 1 \& $ expac \-Ss \*(Aq%r/%n %v\en %d\*(Aq .Ve .PP List the oldest 10 installed packages (by build date): .Sp .Vb 1 \& $ expac \-\-timefmt=%s \*(Aq%b\et%n\*(Aq | sort \-n | head \-10 .Ve .SH AUTHOR .IX Header "AUTHOR" Dave Reisner