pk4(1) | User Manuals | pk4(1) |
pk4 - make available the Debian source package producing the specified package
pk4 [options] package...
pk4 resolves the specified argument(s) as either:
The source package version is either the installed version (if any) or the installation candidate, as per apt-cache policy.
Then, pk4 downloads the entire selected source package (every file referenced by — and including — its .dsc file) and prints the output directory path.
# Avail the current Linux kernel sources: pk4 -src linux
# Avail the sources which produced Debian binary package libbz2-1.0 pk4 libbz2-1.0
# Avail the sources of whichever package currently provides vi: pk4 -file $(which vi)
# Fetch the i3 source, apply a bugfix, rebuild and replace installed packages: pk4 i3 patch -p1 < /tmp/myfix.patch pk4-replace
# Avail all debhelper build system implementations: pk4 -allow_unauthenticated $(grep '^dh-*' /var/cache/pk4/completion.both.txt) # Grep through their sources: grep -r option ~/.cache/pk4/dh-*
The following attributes can be configured in ~/.config/pk4/pk4.deb822:
Disk-Usage-Limit: 2GiB
The following hooks can be configured:
# Automatically create a git repository for each package: mkdir -p ~/.config/pk4/hooks-enabled/after-download/ ln -s /usr/share/pk4/hooks-available/after-download/git-init \ ~/.config/pk4/hooks-enabled/after-download/
# Unpack source into a new git-buildpackage repository: apt install git-buildpackage mkdir -p ~/.config/pk4/hooks-enabled/unpack/ ln -s /usr/share/pk4/hooks-available/unpack/gbp \ ~/.config/pk4/hooks-enabled/unpack/
Michael Stapelberg <stapelberg at debian.org>
OCTOBER 2017 | Linux |