.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45) .\" .\" 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 .\" .\" Required to disable full justification in groff 1.23.0. .if n .ds AD l .\" ======================================================================== .\" .IX Title "PKGFILED 1" .TH PKGFILED 1 2026-02-15 "pkgfiled 25" "pkgfiled 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 pkgfiled \- automatically syncs pacman .files DBs to the pkgfile cache .SH SYNOPSIS .IX Header "SYNOPSIS" Usage: \fIpkgfiled\fR [options] pacman_dbpath pkgfile_cache .SH DESCRIPTION .IX Header "DESCRIPTION" pkgfiled is a tiny daemon which watches for changes to \fBpacman\fR(8)\*(Aqs .files databases and repackages these for consumption by pkgfile. This allows data to remain in sync between pacman and pkgfile. .PP Invoking \fIpkgfiled\fR requires two arguments \-\- a source directory to read pacman database files from (typically under \fI/var/lib/pacman/sync\fR), and a destination directory which pkgfile will read from (typically \&\fI/var/cache/pkgfile\fR). A systemd unit facilitates management of the daemon. .PP Upon starting, pkgfiled will compare the contents of the pacman database with the pkgfile cache and catch up with anything out of sync. After this, it will only wake up when changes occur to the pacman database. .SH OPTIONS .IX Header "OPTIONS" .IP "\fB\-f\fR, \fB\-\-force\fR" 4 .IX Item "-f, --force" On the initial sync, ignore timestamp comparisons and rewrite all found databases. .IP "\fB\-o\fR, \fB\-\-oneshot\fR" 4 .IX Item "-o, --oneshot" Exit after pkgfiled\*(Aqs initial sync, rather than continuing to listen for changes. .IP "\fB\-z\fR, \fB\-\-compress\fR[\fB=\fR\fICOMPRESSION\fR]" 4 .IX Item "-z, --compress[=COMPRESSION]" Repack repos with the optionally supplied compression method, which may be one of \fBnone\fR, \fBgzip\fR, \fBbzip2\fR, \fBlzop\fR, \fBlz4\fR, \fBlzma\fR, \fBxz\fR, or \fBzstd\fR. If this flag is passed without a compression method, this defaults to \fBgzip\fR. If this flag is not passed at all, no compression will be applied. Applying any form of compression will decrease performance, but may be desirable for disk space concerns. .IP "\fB\-h\fR, \fB\-\-help\fR" 4 .IX Item "-h, --help" Print help and exit. .IP "\fB\-V\fR, \fB\-\-version\fR" 4 .IX Item "-V, --version" Print the version and exit. .SH SIGNALS .IX Header "SIGNALS" .IP "\fBSIGINT\fR, \fBSIGTERM\fR" 4 .IX Item "SIGINT, SIGTERM" When run interactively, pkgfiled will gracefully shutdown on receipt of \&\fBSIGINT\fR. Otherwise, \fBSIGTERM\fR is used to indicate a graceful shutdown. .IP "\fBSIGUSR1\fR, \fBSIGUSR2\fR" 4 .IX Item "SIGUSR1, SIGUSR2" Upon receipt of these signals, pkgfiled will rescan the pacman database directory for changes and update as needed. Unlike \fBSIGUSR1\fR, \fBSIGUSR2\fR will ignore timestamps checks and rewrite all found database. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBpkgfile\fR(8) .SH AUTHOR .IX Header "AUTHOR" Dave Reisner