PACCAT(1)

NAME
paccat - Print pacman package files

SYNOPSIS
paccat [options] [-<Q|F>] [targets] -- <files>
paccat [options] [targets] -- <files>

a target can be specified as:
    <pkgname>, <repo>/<pkgname>, <url> or <file>.

files can be specified as just the filename or the full path.

DESCRIPTION
Print pacman package files. paccat prints files from packages independent of your system by downloading the needed packages and extracting the needed files.

OPTIONS

-a, --all
    print all matches of files instead of just the first.

-b, --dbpath <path>
    Set an alternative database location.

--binary
    Print binary files

--cachedir <path>
    Set an alternative cache directory.

--config <file>
    Use an alternative pacman.conf.

-e, --extract
    Extract matched files to the current directory.

-F, --files
    Use files database to search for files before deciding to download.

-h, --help
    Print help information.

-q, --quiet
    Print file names instead of file content.

-Q, --query
    Use local database to search for files before deciding to download.

-r, --root <path>
    Set an alternative root directory.

-V, --version
    Print version information.

-x, --regex
    Enable searching using regular expressions.

EXAMPLES

paccat grub -- etc/default/grub
    Print the contents of 'etc/default/grub' from the grub package.

paccat pacman -- pacman.conf
    Print the contents of the first file named 'pacman.conf' from the pacman package.

paccat -F -- pacman.conf
    Print the contents of the first file named 'pacman.conf' in the repos

paccat -x pacman mkinitcpio -- '\.conf^'
    Print the contents of all files ending in '.conf' from both the pacman and mkinitcpio packages.

paccat ~/pkgs/my-pkg-1.0.0-1.pkg.tar.zst -- myfile
    Print the contents of 'myfile' from a package tarball.

paccat https://archlinux.org/packages/extra/x86_64/git/download -- git-blame.1.gz
    Download and print the contents of 'git-blame.1.gz' from the git package.";

SEE ALSO
pacman(8)

BUGS
Please report bugs to our GitHub page https://github.com/Morganamilo/paccat.

AUTHORS
Morgan <morganamilo@archlinux.org>