2023-06-18 18:25:55 -04:00
|
|
|
|
pkg-get(8)
|
|
|
|
|
|
2006-07-13 04:21:42 +02:00
|
|
|
|
NAME
|
2023-06-18 18:25:55 -04:00
|
|
|
|
pkg-get - a package management tool for CRUX Linux
|
2006-07-13 04:21:42 +02:00
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
2023-06-18 18:25:55 -04:00
|
|
|
|
pkg-get command <arguments> [options]
|
2006-07-13 04:21:42 +02:00
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
2023-06-21 16:24:01 -04:00
|
|
|
|
pkg-get is a simple package management tool for CRUX Linux. It
|
|
|
|
|
tries to replicate some of the most useful features of the port
|
|
|
|
|
management tool prt-get(8) to be used with binary packages.
|
2023-06-18 18:25:55 -04:00
|
|
|
|
pkg-get requires a remote or local package repository that can be
|
2023-06-21 16:24:01 -04:00
|
|
|
|
generated by repository maintainers with the pkg-repgen(8) script.
|
2006-07-13 04:21:42 +02:00
|
|
|
|
|
|
|
|
|
COMMANDS
|
2023-06-18 18:25:55 -04:00
|
|
|
|
install <package1> [<package2>..<packageN>]
|
|
|
|
|
Install given packages, download if necessary.
|
|
|
|
|
|
|
|
|
|
update <package1> [<package2>..<packageN>]
|
|
|
|
|
Update given packages, download if necessary.
|
|
|
|
|
|
|
|
|
|
diff [--all]
|
2023-06-21 16:24:01 -04:00
|
|
|
|
Show a list of outdated packages. The --all option
|
|
|
|
|
also dis‐ plays locked packages.
|
2023-06-18 18:25:55 -04:00
|
|
|
|
|
|
|
|
|
quickdiff
|
|
|
|
|
Show a compact list of outdated packages.
|
|
|
|
|
|
|
|
|
|
sysup [--all]
|
2023-06-21 16:24:01 -04:00
|
|
|
|
Update all outdated packages, download if necessary.
|
2023-06-18 18:25:55 -04:00
|
|
|
|
Locked packages are excluded from the operation unless
|
|
|
|
|
--all is passed.
|
|
|
|
|
|
|
|
|
|
depinst <package1> [<package2>..<packageN>]
|
|
|
|
|
Install given packages and relative dependencies.
|
|
|
|
|
|
|
|
|
|
depends <package>
|
2023-06-21 16:24:01 -04:00
|
|
|
|
Show a recursive list of dependencies for <package>
|
|
|
|
|
and their installation status.
|
2023-06-18 18:25:55 -04:00
|
|
|
|
|
|
|
|
|
quickdep <package>
|
2023-06-21 16:24:01 -04:00
|
|
|
|
Show a brief list of dependencies for <package>.
|
2023-06-18 18:25:55 -04:00
|
|
|
|
|
|
|
|
|
dependent <package> [--all]
|
|
|
|
|
Show installed (or all with the --all option) packages
|
2023-06-21 16:24:01 -04:00
|
|
|
|
that de‐ pend on <package>.
|
2023-06-18 18:25:55 -04:00
|
|
|
|
|
|
|
|
|
path <package>
|
2023-06-21 16:24:01 -04:00
|
|
|
|
Show local path of <package>.
|
2023-06-18 18:25:55 -04:00
|
|
|
|
|
|
|
|
|
info <package>
|
2023-06-21 16:24:01 -04:00
|
|
|
|
Show information about <package>.
|
2023-06-18 18:25:55 -04:00
|
|
|
|
|
|
|
|
|
current <package>
|
|
|
|
|
Show currently installed version of package.
|
|
|
|
|
|
|
|
|
|
isinst <package>
|
|
|
|
|
Display whether a package is installed.
|
|
|
|
|
|
|
|
|
|
readme <package>
|
|
|
|
|
Print README information (if available) for the package.
|
|
|
|
|
|
2023-06-21 16:24:01 -04:00
|
|
|
|
list List all packages in the active repositories.
|
2023-06-18 18:25:55 -04:00
|
|
|
|
|
|
|
|
|
listinst
|
|
|
|
|
List all installed packages.
|
|
|
|
|
|
|
|
|
|
dsearch <string>
|
|
|
|
|
Search for packages whose name or description contains
|
|
|
|
|
<string>.
|
|
|
|
|
|
|
|
|
|
search <string>
|
|
|
|
|
Search for packages whose name contains <string>.
|
|
|
|
|
|
|
|
|
|
dup List all duplicate ports (present in more than one
|
|
|
|
|
repository).
|
|
|
|
|
|
|
|
|
|
printf <format string1> [--filter=<filter>]
|
2023-06-21 16:24:01 -04:00
|
|
|
|
Description blatantly stolen from prt-get(8). Print
|
2023-06-18 18:25:55 -04:00
|
|
|
|
formatted port list. Format string can contain variables,
|
2023-06-21 16:24:01 -04:00
|
|
|
|
which are re‐ placed like this:
|
2023-06-18 18:25:55 -04:00
|
|
|
|
|
|
|
|
|
• %n -> name
|
2023-06-21 16:24:01 -04:00
|
|
|
|
|
2023-06-18 18:25:55 -04:00
|
|
|
|
• %p -> path
|
2023-06-21 16:24:01 -04:00
|
|
|
|
|
2023-06-18 18:25:55 -04:00
|
|
|
|
• %v -> version
|
2023-06-21 16:24:01 -04:00
|
|
|
|
|
2023-06-18 18:25:55 -04:00
|
|
|
|
• %r -> release
|
2023-06-21 16:24:01 -04:00
|
|
|
|
|
2023-06-18 18:25:55 -04:00
|
|
|
|
• %d -> description
|
2023-06-21 16:24:01 -04:00
|
|
|
|
|
2023-06-18 18:25:55 -04:00
|
|
|
|
• %e -> dependencies
|
2023-06-21 16:24:01 -04:00
|
|
|
|
|
2023-06-18 18:25:55 -04:00
|
|
|
|
• %u -> url
|
2023-06-21 16:24:01 -04:00
|
|
|
|
|
2023-06-18 18:25:55 -04:00
|
|
|
|
• %R -> Readme ("yes"/"no")
|
2023-06-21 16:24:01 -04:00
|
|
|
|
|
2023-06-18 18:25:55 -04:00
|
|
|
|
• %E -> pre-install script ("yes"/"no")
|
2023-06-21 16:24:01 -04:00
|
|
|
|
|
2023-06-18 18:25:55 -04:00
|
|
|
|
• %O -> post-install script ("yes"/"no")
|
2023-06-21 16:24:01 -04:00
|
|
|
|
|
|
|
|
|
• %M -> "None". for compatibility with prt-get
|
|
|
|
|
|
2023-06-18 18:25:55 -04:00
|
|
|
|
• %P -> "None". for compatibility with prt-get
|
2023-06-21 16:24:01 -04:00
|
|
|
|
|
2023-06-18 18:25:55 -04:00
|
|
|
|
• %l -> is locked ("yes"/"no")
|
2023-06-21 16:24:01 -04:00
|
|
|
|
|
|
|
|
|
• %i -> "no" if not installed, "yes" if it's installed
|
|
|
|
|
and up to date and "diff" if it's installed and a new
|
|
|
|
|
version is in the repository.
|
2023-06-18 18:25:55 -04:00
|
|
|
|
|
|
|
|
|
Use "\n" and "\t" to format your output (no additional format
|
2023-06-21 16:24:01 -04:00
|
|
|
|
codes supported). The optional format string2 can contain the
|
|
|
|
|
same variables as format string1 and is used to sort the output.
|
|
|
|
|
You can specify a wildcard filter to filter by package name.
|
2023-06-18 18:25:55 -04:00
|
|
|
|
|
|
|
|
|
lock <package1> [<package2>..<packageN>]
|
2023-06-21 16:24:01 -04:00
|
|
|
|
Lock a package (exclude it from being updated in a sysup).
|
2023-06-18 18:25:55 -04:00
|
|
|
|
|
|
|
|
|
unlock <package1> [<package2>..<packageN>]
|
|
|
|
|
Unlock a package.
|
|
|
|
|
|
|
|
|
|
listlocked
|
|
|
|
|
Display a list of locked packages.
|
|
|
|
|
|
|
|
|
|
sync Syncronize local packages with the ones from the remote
|
|
|
|
|
repository. If the repository is local, this command does
|
|
|
|
|
nothing.
|
|
|
|
|
|
|
|
|
|
help Display brief help screen.
|
|
|
|
|
|
|
|
|
|
version
|
|
|
|
|
Show pkg-get version.
|
|
|
|
|
|
2023-06-21 16:24:01 -04:00
|
|
|
|
OPTIONSB
|
2023-06-18 18:25:55 -04:00
|
|
|
|
-do Download only. Applicable to: sysup, install, depinst,
|
|
|
|
|
update.
|
|
|
|
|
|
|
|
|
|
-f Force installing / upgrading. This is passed to pkgadd(8).
|
|
|
|
|
|
|
|
|
|
-im Ignore md5sum mismatches.
|
|
|
|
|
|
|
|
|
|
--aargs="arguments"
|
|
|
|
|
Pass the specified arguments to pkgadd(8).
|
|
|
|
|
|
|
|
|
|
--config=/path/to/file
|
|
|
|
|
Use the specified configuration file.
|
|
|
|
|
|
2023-06-21 16:24:01 -04:00
|
|
|
|
-r <root>
|
|
|
|
|
Use <root> directory for operations involving the package
|
|
|
|
|
database (install, depinst, update, isinst, current,
|
|
|
|
|
listinst, diff, quickdiff, sysup). This option does
|
|
|
|
|
not affect the directories from which pkg-get loads the
|
|
|
|
|
metadata or tarballs; those settings are still
|
|
|
|
|
governed by the entries in the configuration file.
|
|
|
|
|
|
|
|
|
|
When using -r <root>, the relevant pkgadd.conf is the one
|
|
|
|
|
on the target filesystem, not the one where pkg-get is
|
|
|
|
|
running. Any custom directives in your pkgadd.conf should
|
|
|
|
|
be copied to the corresponding location under the
|
|
|
|
|
new root, or else you should pass the --aargs option to
|
|
|
|
|
tell pkgadd to read its configuration from a non-standard
|
|
|
|
|
location.
|
|
|
|
|
|
|
|
|
|
When combined with --pre-install or --post-install
|
|
|
|
|
or --install-scripts, setting a root directory other
|
|
|
|
|
than '/' has the side effect of copying the PKGINST
|
|
|
|
|
shell script into the corresponding location under
|
|
|
|
|
the new root. This action (and the subsequent chroot
|
|
|
|
|
command) is the most direct way to accommodate the user's
|
|
|
|
|
intention. Unfortunately it clutters the mounted volume
|
|
|
|
|
with a small fragment of shell script. If such clutter
|
|
|
|
|
is not desired, the option -r <root> should always be
|
|
|
|
|
paired with the configuration setting 'runscripts no',
|
|
|
|
|
leaving it up to the administrator of the mounted volume
|
|
|
|
|
to perform any pre- or post- install tasks separately.
|
|
|
|
|
|
2023-06-18 18:25:55 -04:00
|
|
|
|
--pre-install
|
|
|
|
|
Execute pre-install script if available.
|
|
|
|
|
|
|
|
|
|
--post-install
|
|
|
|
|
Execute post-install script if available.
|
|
|
|
|
|
|
|
|
|
--install-scripts
|
|
|
|
|
Execute pre-install and post-install scripts if available.
|
|
|
|
|
|
2006-07-13 04:21:42 +02:00
|
|
|
|
CONFIGURATION
|
2023-06-18 18:25:55 -04:00
|
|
|
|
Configuration is handled by the /etc/pkg-get.conf file, options
|
|
|
|
|
are explained in the file itself.
|
|
|
|
|
|
2006-07-13 04:21:42 +02:00
|
|
|
|
EXAMPLES
|
2023-06-18 18:25:55 -04:00
|
|
|
|
pkg-get install sqlite pysqlite
|
|
|
|
|
Install sqlite and pysqlite.
|
|
|
|
|
|
|
|
|
|
pkg-get depinst qt6-base -f
|
|
|
|
|
Install qt6-base and all its dependencies, forcing upgrade.
|
|
|
|
|
|
|
|
|
|
pkg-get sysup -do
|
|
|
|
|
Download new releases of all the outdated packages.
|
2006-07-13 04:21:42 +02:00
|
|
|
|
|
|
|
|
|
AUTHORS
|
2023-06-18 18:25:55 -04:00
|
|
|
|
Simone Rota <sip@varlock.com>, John McQuah <jmcquah@disroot.org>
|
2006-07-13 04:21:42 +02:00
|
|
|
|
|
|
|
|
|
SEE ALSO
|
2023-06-18 18:25:55 -04:00
|
|
|
|
pkgadd(8), prt-get(8), pkg-repgen(8)
|
|
|
|
|
|
2023-06-21 16:24:01 -04:00
|
|
|
|
July 13, 2006 pkg-get(8)
|