2005-11-09 16:43:05 -05:00
|
|
|
.\" man page for prt-get
|
2023-03-12 07:37:16 -04:00
|
|
|
.\" original work by Johannes Winkelmann, jw at tks6 dot net
|
2005-11-09 16:43:05 -05:00
|
|
|
.\"
|
2023-03-12 07:37:16 -04:00
|
|
|
.\" extended in 2013 by Alan Mizrahi, alan at mizrahi dot com dot ve
|
|
|
|
.\" and in 2023 by John McQuah, jmcquah at disroot dot org
|
2005-11-09 16:43:05 -05:00
|
|
|
.\"
|
|
|
|
.\" .PU
|
|
|
|
.TH "prt-get" "8" "" "" ""
|
|
|
|
.SH "NAME"
|
|
|
|
.LP
|
|
|
|
prt\-get \- an advanced package management tool to be used with
|
|
|
|
pkgutils from CRUX (see http://www.crux.nu)
|
|
|
|
.SH "SYNOPSIS"
|
|
|
|
.B prt\-get command [options] <arguments>
|
|
|
|
.br
|
|
|
|
.SH "DESCRIPTION"
|
2023-06-19 14:54:06 -04:00
|
|
|
prt-get is a package management tool which provides additional
|
2023-03-12 07:37:16 -04:00
|
|
|
functionality to the CRUX package management system. It works with the
|
2005-11-09 16:43:05 -05:00
|
|
|
local ports tree and is therefore fully compatible with ports(8) and
|
2023-03-12 07:37:16 -04:00
|
|
|
pkgmk(8)/pkgadd(8)/pkgrm(8). It offers the following features:
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.PP
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
|
|
|
abstract ports installation/update from file system
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
|
|
|
install/update a list of packages with one command
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
|
|
|
list dependencies for a list of packages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
|
|
|
show information about ports
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
|
|
|
search within the ports
|
|
|
|
|
|
|
|
.PP
|
|
|
|
|
2023-06-19 14:54:06 -04:00
|
|
|
What prt-get basically does is build, install/upgrade, and remove packages,
|
|
|
|
using pkgmk, pkgadd, and pkgrm. Additionally, you don't have be in the port's
|
|
|
|
directory to call prt-get. prt-get will search for the respective port
|
|
|
|
itself in a list of directories specified in /etc/prt-get.conf. This
|
2005-11-09 16:43:05 -05:00
|
|
|
allows you to just install or update a package, without caring where
|
|
|
|
it actually is located on your file system.
|
|
|
|
|
|
|
|
.PP
|
|
|
|
|
2023-06-19 14:54:06 -04:00
|
|
|
prt-get also lets you search for ports by name,
|
2023-03-12 07:37:16 -04:00
|
|
|
find information about ports (without installing them of course),
|
|
|
|
or print the dependencies of a port (as a space- or newline-separated list,
|
|
|
|
or a formatted tree). Note that dependencies are no
|
|
|
|
requirement for crux packages and therefore not always accurate.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.PP
|
|
|
|
|
2023-06-19 14:54:06 -04:00
|
|
|
prt-get has a test mode so you can see what effect an install/update
|
|
|
|
operation would have. Use the --test switch for this (more details in
|
2023-03-12 07:37:16 -04:00
|
|
|
the \fBOPTIONS\fP section below).
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.SH "RETURN VALUE"
|
2023-06-19 14:54:06 -04:00
|
|
|
prt-get returns 0 on success and a non-zero value otherwise (exact
|
2005-11-09 16:43:05 -05:00
|
|
|
value -> meaning mapping to be determined...)
|
|
|
|
|
|
|
|
.SH "COMMANDS"
|
2023-06-19 14:54:06 -04:00
|
|
|
prt-get uses so-called commands, which always have to be the first
|
2005-11-09 16:43:05 -05:00
|
|
|
non-option argument passed. This is very similar to
|
|
|
|
.B cvs(1).
|
|
|
|
[command] can be one of the following:
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
2023-03-19 16:47:11 -04:00
|
|
|
.B install [\-\-margs] [\-\-aargs] [\-\-log] [\-\-nodeps] [\-\-softdeps] <package1> [<package2> ...]
|
2023-05-29 08:21:18 -04:00
|
|
|
Install or update the packages given on the command line. Note that you can do
|
2023-03-19 16:47:11 -04:00
|
|
|
this from any directory. Pass the --nodeps flag to prevent \fBprt\-get\fP from
|
2023-06-23 11:46:46 -04:00
|
|
|
resolving dependencies and injecting any needed packages into the list of targets.
|
2023-03-19 16:47:11 -04:00
|
|
|
Pass the --softdeps flag if you want the dependency resolver to also consider
|
|
|
|
the "Optional" relationships among the packages given on the command line.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B depinst [\-\-margs] [\-\-aargs] [\-\-log] [\-\-softdeps] <package1> [<package2> ...]
|
2023-03-19 16:47:11 -04:00
|
|
|
Basically a synonym for install (without the --nodeps flag).
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B update [\-\-margs] [\-\-aargs] [\-\-log] [\-\-softdeps] <package1> [<package2> ...]
|
2023-06-19 14:54:06 -04:00
|
|
|
Basically a synonym for install. Earlier versions of \fBprt\-get\fP did not
|
|
|
|
adjust the \fBpkgadd(8)\fP arguments on a package-by-package basis, but
|
|
|
|
applied "install mode" or "update mode" to the entire transaction. This
|
2023-06-21 21:16:32 -04:00
|
|
|
version of \fBprt\-get\fP interprets the install command less rigidly, and tries
|
|
|
|
to sync all affected ports with their repository versions unless instructed
|
2023-06-19 14:54:06 -04:00
|
|
|
otherwise (using \fBprt\-get lock\fP, the --prefer-higher option, or the
|
2023-06-21 21:16:32 -04:00
|
|
|
prt-get.aliases file).
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B remove <package1> [<package2> ...]
|
2023-05-29 08:21:18 -04:00
|
|
|
Remove packages listed in this order
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-06-21 21:16:32 -04:00
|
|
|
.B sysup [\-\-softdeps] [\-\-nodeps] [\-\-prefer\-higher] [\-\-strict\-diff]
|
2023-03-12 07:37:16 -04:00
|
|
|
Update all installed packages which are outdated. Sorts by hard dependencies
|
|
|
|
by default. Passing the --softdeps switch tells \fBprt\-get\fP to also consider
|
|
|
|
optional dependencies when sorting. Passing the --nodeps switch tells prt-get
|
2023-03-19 16:47:11 -04:00
|
|
|
not to sort by dependencies at all.
|
2023-06-19 14:54:06 -04:00
|
|
|
|
2023-06-21 21:16:32 -04:00
|
|
|
.B Note:
|
2023-03-19 16:47:11 -04:00
|
|
|
If a port has acquired new dependencies since its last successful build,
|
2023-06-21 21:16:32 -04:00
|
|
|
those new dependencies \fIwill\fP be injected into the transaction. An elegant
|
|
|
|
description of this new behaviour is "prt-get no more silently assumes that
|
|
|
|
the user didn't want a particular dependency" [1]. You can still disable the
|
|
|
|
automatic dependency injection by passing the --nodeps switch. Other
|
|
|
|
ways to fine-tune the selection of ports that are included in a \fBsysup\fP are the
|
|
|
|
commands \fBlock\fP and \fBunlock\fP, the prt-get.aliases file, and the
|
|
|
|
mutually exclusive switches --prefer-higher, --strict-diff (documented below).
|
2023-06-19 14:54:06 -04:00
|
|
|
|
2023-06-21 21:16:32 -04:00
|
|
|
[1] https://lists.crux.nu/pipermail/crux/2008-June/001784.html
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B lock <package1> [<package2>...]
|
2023-06-21 21:16:32 -04:00
|
|
|
Exclude these packages from being updated in a
|
2005-11-09 16:43:05 -05:00
|
|
|
.B sysup
|
2023-06-21 21:16:32 -04:00
|
|
|
operation.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B unlock <package1> [<package2>...]
|
|
|
|
Remove lock from these packages
|
|
|
|
|
|
|
|
.TP
|
2023-06-21 21:16:32 -04:00
|
|
|
.B listlocked [\-v|\-vv]
|
2005-11-09 16:43:05 -05:00
|
|
|
List names of packages which are locked. As always,
|
2023-06-21 21:16:32 -04:00
|
|
|
.B \-v
|
2005-11-09 16:43:05 -05:00
|
|
|
will additionally show the version, and
|
2023-06-21 21:16:32 -04:00
|
|
|
.B \-vv
|
2005-11-09 16:43:05 -05:00
|
|
|
also includes the description from the Pkgfile. Note that the
|
2023-06-21 21:16:32 -04:00
|
|
|
.B \-vv
|
2005-11-09 16:43:05 -05:00
|
|
|
switch will slow down the operation remarkably.
|
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B diff [\-\-all] [\-\-prefer\-higher] [<package1> <package2> ...]
|
2023-05-29 08:21:18 -04:00
|
|
|
Show differences between installed packages and ports in the ports
|
2023-06-21 21:16:32 -04:00
|
|
|
tree. Package names passed as argument will truncate the output to
|
|
|
|
show only those packages. It's also possible to use shell-like
|
2005-11-09 16:43:05 -05:00
|
|
|
.B wildcards
|
|
|
|
for the diff command. Make sure you escape where needed. Locked
|
|
|
|
packages are only displayed if you use the --all switch. If you want
|
|
|
|
to see only diffs which have a lower version installed than the one in
|
|
|
|
the ports tree, use the --prefer-higher option.
|
|
|
|
|
|
|
|
.TP
|
2023-06-21 21:16:32 -04:00
|
|
|
.B quickdiff [\-\-prefer\-higher]
|
2023-05-29 08:21:18 -04:00
|
|
|
Print a simple list of packages which have a different version in the
|
2023-03-12 07:37:16 -04:00
|
|
|
ports tree than what is installed. The output is sorted alphabetically,
|
|
|
|
but you can generate a (larger) list sorted by dependencies using
|
|
|
|
.B prt\-get quickdep $(prt\-get quickdiff).
|
|
|
|
|
2023-03-19 16:47:11 -04:00
|
|
|
If you want to see only diffs which have a lower version installed than
|
|
|
|
the one in the ports tree, use the --prefer-higher option.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B search [\-v|\-vv] [\-\-path] [\-\-regex] <expr>
|
2005-11-09 16:43:05 -05:00
|
|
|
Search the ports tree for
|
|
|
|
.B expr
|
|
|
|
in their name
|
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B dsearch [\-v|\-vv] [\-\-path] [\-\-regex] <expr>
|
|
|
|
Search the ports tree (both name and description) for the pattern
|
2005-11-09 16:43:05 -05:00
|
|
|
.B expr
|
2023-03-12 07:37:16 -04:00
|
|
|
(which can be a shell-like wildcard pattern or a regexp). The search in
|
2023-06-19 14:54:06 -04:00
|
|
|
the description is not case sensitive. Note that this requires prt-get
|
|
|
|
to read every Pkgfile, which makes it rather slow; if you like searching
|
|
|
|
by description, consider using the cache functionality, so you only have to
|
|
|
|
read every Pkgfile when the ports tree is updated.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B fsearch [\-\-full] [\-\-regex] <pattern>
|
2005-11-09 16:43:05 -05:00
|
|
|
Search the ports tree for
|
|
|
|
.B pattern
|
|
|
|
as file name in their footprint. When called without '--full', strips
|
2023-06-21 21:16:32 -04:00
|
|
|
the directories from the file names before matching. Pattern can be a
|
|
|
|
shell-like wildcard pattern (e.g. prt-get fsearch "*.h") or a regular
|
|
|
|
expression (e.g. prt-get fsearch --regex 'liblz(o2|ma).*')
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B info <port>
|
|
|
|
Print available info for a port
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B path <port>
|
|
|
|
Print the path of a port
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B readme <port>
|
2006-04-04 16:12:42 -04:00
|
|
|
Print the port's README file if it exists; if set, uses $PAGER
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B depends [\-\-softdeps] <package1> [<package2> ...]
|
2023-05-29 08:21:18 -04:00
|
|
|
Print a recursive list of dependencies needed to install the packages passed
|
2023-06-19 14:54:06 -04:00
|
|
|
as argument. It shows a list of the dependencies that were found in the
|
|
|
|
ports tree, plus a list of the dependencies that could not be found. Pass
|
|
|
|
the --softdeps flag if you want the sorting algorithm to consider
|
|
|
|
optional dependencies too.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B quickdep [\-\-softdeps] <package1> [<package2> ...]
|
2023-05-29 08:21:18 -04:00
|
|
|
Same output as \fBdepends\fP, but separated by spaces rather than newlines, and
|
2023-03-12 10:23:43 -04:00
|
|
|
stripped of any dependencies that could not be found in the ports tree.
|
|
|
|
Useful in case the list of dependencies is too large to fit on one screen, or
|
|
|
|
if you don't want to filter out manually the ports that are invalid targets for
|
|
|
|
installation. For example, instead of
|
2023-03-12 07:37:16 -04:00
|
|
|
.B prt\-get depinst xorg-server
|
|
|
|
you might micromanage the process as follows:
|
2023-03-19 16:47:11 -04:00
|
|
|
.B for i in $(prt\-get quickdep xorg-server); do prt\-get install \-fr \-\-nodeps $i; done
|
2023-03-12 10:23:43 -04:00
|
|
|
which ensures that the latest version of each dependency is built.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
2023-03-12 10:23:43 -04:00
|
|
|
Note: It might be useful to run
|
2023-03-12 07:37:16 -04:00
|
|
|
.B prt\-get depends <package1> | grep \(dq\-\- missing packages\(dq
|
|
|
|
as a first step, in order to ensure that your ports tree has everything needed
|
|
|
|
for successful builds.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B deptree [\-\-softdeps] <package>
|
2023-05-29 08:21:18 -04:00
|
|
|
Print a tree of the dependencies of the package
|
2023-03-12 07:37:16 -04:00
|
|
|
.B <package>.
|
2023-06-21 21:16:32 -04:00
|
|
|
Pass the --softdeps flag to also show the installed packages that might have been
|
|
|
|
eagerly linked when
|
2023-03-12 07:37:16 -04:00
|
|
|
.B <package>
|
2023-06-21 21:16:32 -04:00
|
|
|
or its dependencies were compiled.
|
2023-03-12 07:37:16 -04:00
|
|
|
Subtrees already shown are marked with '-->' to save some space. In
|
|
|
|
order to show them all, add the --all switch.
|
|
|
|
|
|
|
|
.SH ""
|
|
|
|
|
|
|
|
.TP
|
2023-06-23 11:46:46 -04:00
|
|
|
.B dependent [\-\-recursive] [\-\-softdeps] [\-\-all] <package>
|
|
|
|
Print a list of ports whose "Depends on:" line contains
|
2023-03-12 07:37:16 -04:00
|
|
|
.B <package>
|
2023-06-23 11:46:46 -04:00
|
|
|
(or its dependents, if --recursive is passed). Use the --softdeps flag to also
|
|
|
|
search the "Optional:" lines for \fB<package>\fP .
|
2023-03-12 07:37:16 -04:00
|
|
|
|
2023-05-29 08:21:18 -04:00
|
|
|
By default, output is restricted to ports that are installed. To see all the
|
2023-06-23 11:46:46 -04:00
|
|
|
dependencies, add the --all switch. Use --tree to get a nicely indented list.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-09-01 12:39:47 -04:00
|
|
|
.B dup [\-v] [format]
|
2005-11-09 16:43:05 -05:00
|
|
|
List ports which can be found in multiple directories configured in
|
2023-06-21 21:16:32 -04:00
|
|
|
\fB/etc/prt\-get.conf\fP.
|
|
|
|
Use the \fB\-v\fP switch to see a verbose report, which will show for each
|
|
|
|
dup the port that takes precedence, and the port that is hidden (including
|
|
|
|
full path and version info). The verbose switch is basically an alias for a
|
|
|
|
particular combination of the recognized format symbols, namely
|
|
|
|
|
|
|
|
.B '* %n\en %p1 %v1 precedes over\en %p2 %v2\en'.
|
|
|
|
|
2023-06-23 11:46:46 -04:00
|
|
|
You can customize the output by passing a different format string, whose
|
|
|
|
symbols will be replaced as follows.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
2006-09-08 07:35:06 -04:00
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-09-01 12:39:47 -04:00
|
|
|
%n -> name of the port
|
2006-09-08 07:35:06 -04:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-09-01 12:39:47 -04:00
|
|
|
%p1 -> full path (including name) to port taking precedence
|
2006-09-08 07:35:06 -04:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-09-01 12:39:47 -04:00
|
|
|
%p2 -> full path (including name) to port being hidden
|
2006-09-08 07:59:57 -04:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-09-01 12:39:47 -04:00
|
|
|
%v1 -> version of port taking precedence
|
2006-09-08 07:59:57 -04:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-09-01 12:39:47 -04:00
|
|
|
%v2 -> version of port being hidden
|
2006-09-08 07:59:57 -04:00
|
|
|
|
2023-06-23 11:46:46 -04:00
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-09-01 12:39:47 -04:00
|
|
|
%M1 -> maintainer of port taking precedence
|
2023-06-23 11:46:46 -04:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-09-01 12:39:47 -04:00
|
|
|
%M2 -> maintainer of port being hidden
|
2023-06-23 11:46:46 -04:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-09-01 12:39:47 -04:00
|
|
|
%u1 -> URL of port taking precedence
|
2023-06-23 11:46:46 -04:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-09-01 12:39:47 -04:00
|
|
|
%u2 -> URL of port being hidden
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B list [\-v|\-vv] [\-\-path] [\-\-regex] [filter]
|
2005-11-09 16:43:05 -05:00
|
|
|
List ports available in the ports tree. It's basically the same as
|
|
|
|
.B ports \-l
|
|
|
|
but looks in all directories specified in
|
|
|
|
.B /etc/prt\-get.conf.
|
2023-03-12 07:37:16 -04:00
|
|
|
It's also possible to use shell-like
|
2005-11-09 16:43:05 -05:00
|
|
|
.B wildcards
|
|
|
|
for the list command. Make sure you escape where needed
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B printf <format string1> [\-\-sort=<format string2>] [\-\-filter=<filter>]
|
2023-06-23 11:46:46 -04:00
|
|
|
Print formatted port list. Format string can contain variables, which
|
2005-11-09 16:43:05 -05:00
|
|
|
are replaced like this:
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-06-19 14:54:06 -04:00
|
|
|
%n -> name
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-06-19 14:54:06 -04:00
|
|
|
%p -> path
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-06-19 14:54:06 -04:00
|
|
|
%v -> version
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-06-19 14:54:06 -04:00
|
|
|
%r -> release
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-06-19 14:54:06 -04:00
|
|
|
%d -> description
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-06-19 14:54:06 -04:00
|
|
|
%e -> dependencies
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-09-01 12:39:47 -04:00
|
|
|
%P -> optional dependencies
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-06-19 14:54:06 -04:00
|
|
|
%u -> URL
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-06-21 21:16:32 -04:00
|
|
|
%M -> maintainer
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-06-21 21:16:32 -04:00
|
|
|
%R -> readme ("yes"/"no")
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-06-19 14:54:06 -04:00
|
|
|
%E -> pre-install script ("yes"/"no")
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-06-19 14:54:06 -04:00
|
|
|
%O -> post-install script ("yes"/"no")
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-06-19 14:54:06 -04:00
|
|
|
%l -> is locked ("yes"/"no")
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\ \ \ \(bu
|
2023-06-19 14:54:06 -04:00
|
|
|
%i -> "no" if not installed, "yes" if it's installed and
|
2005-11-09 16:43:05 -05:00
|
|
|
up to date and "diff" if it's installed and a new version is in the
|
|
|
|
ports tree.
|
|
|
|
|
2023-06-21 21:16:32 -04:00
|
|
|
Use "\en" and "\et" to format your output (no additional format codes
|
2023-06-19 14:54:06 -04:00
|
|
|
supported). The optional format string2 can contain the same variables
|
2005-11-09 16:43:05 -05:00
|
|
|
as format string1 and is used to sort the output. You can specify a
|
|
|
|
.B wildcard filter
|
|
|
|
to filter by package name.
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B listinst [\-v|\-vv] [\-\-regex] [\-\-depsort] [filter]
|
2005-11-09 16:43:05 -05:00
|
|
|
List installed ports. It's basically the same as
|
|
|
|
.B pkginfo \-i,
|
2023-06-19 14:54:06 -04:00
|
|
|
but omits version when called without verbose (-v, -vv) switch. Plus
|
|
|
|
it is notably faster in my tests. -v adds version information, -vv
|
2005-11-09 16:43:05 -05:00
|
|
|
adds version and description.
|
|
|
|
.B Warning:
|
2023-06-19 14:54:06 -04:00
|
|
|
-vv will slow down the process because it requires prt-get to scan
|
2005-11-09 16:43:05 -05:00
|
|
|
both the ports database and the ports tree.
|
2023-03-12 07:37:16 -04:00
|
|
|
It's also possible to use shell-like
|
2005-11-09 16:43:05 -05:00
|
|
|
.B wildcards
|
2023-03-12 07:37:16 -04:00
|
|
|
for the listinst command. Make sure you escape where needed. By default
|
2023-06-19 14:54:06 -04:00
|
|
|
it's sorted alphabetically; use the --depsort switch to sort by
|
2023-03-12 07:37:16 -04:00
|
|
|
dependencies.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B listorphans [\-v|\-vv|\-\-softdeps]
|
|
|
|
List installed ports which do not appear in the "Depends on:" line of
|
2023-03-12 10:23:43 -04:00
|
|
|
any other port currently installed. Pass the --softdeps flag to also exclude
|
|
|
|
ports that are listed as optional dependencies of currently-installed ports.
|
2023-03-12 07:37:16 -04:00
|
|
|
Output appears alphabetically separated by newlines, making it suitable for
|
|
|
|
process substitution as shown in the
|
|
|
|
.B EXAMPLES
|
|
|
|
section below. Note that some core ports might be runtime
|
2023-06-19 14:54:06 -04:00
|
|
|
dependencies despite their absence in the "Depends on:" line;
|
|
|
|
see \fBPkgfile(5)\fP for an explanation of this practice.
|
2023-03-12 07:37:16 -04:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B isinst <package1> [<package2> ...]
|
2023-03-12 10:23:43 -04:00
|
|
|
Check whether each package given on the command line is installed. Output in
|
|
|
|
the case of multiple arguments is separated by newlines, suitable for
|
|
|
|
processing by awk or grep. Similar to
|
2023-03-12 07:37:16 -04:00
|
|
|
.B pkginfo \-i|grep \-E '^(package1|package2|...)'
|
2023-03-12 10:23:43 -04:00
|
|
|
but does not print the version information. This command has a return value of
|
|
|
|
0 if all packages given as argument are installed, otherwise a return value
|
|
|
|
greater than 0.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-03-19 16:47:11 -04:00
|
|
|
.B current <package1> [<package2> ...]
|
2023-03-12 07:37:16 -04:00
|
|
|
Shows the currently-installed version of <package>, or a message
|
2023-03-19 16:47:11 -04:00
|
|
|
that <package> is not installed.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-03-12 10:23:43 -04:00
|
|
|
.B ls [\-\-path] <package>
|
2023-05-29 08:21:18 -04:00
|
|
|
Print out a listing of the port's directory
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B cat <package> [<file>]
|
2023-06-23 11:46:46 -04:00
|
|
|
Print to stdout (or $PAGER, if set) the contents of <file> in the port's
|
|
|
|
directory. If <file> is not specified, 'Pkgfile' is used.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B edit <package> [<file>]
|
2005-11-09 16:43:05 -05:00
|
|
|
Edit the file using the editor specified in the $EDITOR environment variable.
|
2023-03-12 07:37:16 -04:00
|
|
|
If <file> is not specified, 'Pkgfile' is used.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B help
|
2023-05-29 08:21:18 -04:00
|
|
|
Show a help screen
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B dumpconfig
|
|
|
|
Dump the configuration to the current terminal
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B version
|
2023-05-29 08:21:18 -04:00
|
|
|
Show the current version of prt-get
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B cache
|
2023-05-29 08:21:18 -04:00
|
|
|
Create a cache file from the ports tree to be used by prt-get using the
|
2023-03-12 10:23:43 -04:00
|
|
|
--cache option. Remember to run prt-get cache each time you update the
|
2023-03-12 07:37:16 -04:00
|
|
|
ports tree.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.SH "OPTIONS"
|
|
|
|
|
2023-03-12 07:37:16 -04:00
|
|
|
The following options are primarily useful for install/update transactions.
|
|
|
|
|
2005-11-09 16:43:05 -05:00
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B \-g, \-\-group
|
|
|
|
Stop install or update operation if one package fails (patch by Alan Mizrahi)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-f, \-fi
|
2005-11-09 16:43:05 -05:00
|
|
|
Force install; Implies 'pkgadd -f'; same as --aargs=-f
|
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B \-fr
|
2005-11-09 16:43:05 -05:00
|
|
|
Force rebuild, Implies 'pkgmk -f'; same as --margs=-f
|
|
|
|
|
2017-01-21 06:24:07 -05:00
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B \-us
|
2017-01-21 06:24:07 -05:00
|
|
|
Update signature, implies 'pkgmk -us'; same as --margs=-us
|
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B \-is
|
2017-01-21 06:24:07 -05:00
|
|
|
Ignore signature, implies 'pkgmk -is'; same as --margs=-is
|
|
|
|
|
2005-11-09 16:43:05 -05:00
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B \-uf
|
2005-11-09 16:43:05 -05:00
|
|
|
Update footprint, implies 'pkgmk -uf'; same as --margs=-uf
|
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B \-if
|
2005-11-09 16:43:05 -05:00
|
|
|
Ignore footprint, implies 'pkgmk -if'; same as --margs=-if
|
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B \-ns
|
2005-11-09 16:43:05 -05:00
|
|
|
No stripping, implies 'pkgmk -ns'; same as --margs=-ns
|
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B \-kw
|
2005-11-09 16:43:05 -05:00
|
|
|
Keep working directory, implies 'pkgmk -kw'; same as --margs=-kw
|
|
|
|
|
2023-03-12 07:37:16 -04:00
|
|
|
.TP
|
|
|
|
.B \-\-margs="...", e.g. \-\-margs="\-im"
|
|
|
|
additional arguments to be passed to pkgmk;
|
|
|
|
note that \-d is already passed to pkgmk anyway
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-\-aargs="...", e.g. \-\-aargs="\-f"
|
|
|
|
additional arguments to be passed to pkgadd
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-\-rargs="..."
|
|
|
|
arguments to be passed to pkgrm; currently not used, implemented for
|
|
|
|
future uses and consistency reasons
|
|
|
|
|
2005-11-09 16:43:05 -05:00
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B \-\-ignore=<package1,package2,...>
|
|
|
|
Don't install these packages, even if they're listed as dependencies
|
2005-11-09 16:43:05 -05:00
|
|
|
|
2023-03-19 16:47:11 -04:00
|
|
|
.TP
|
|
|
|
.B \-\-nodeps
|
2023-06-23 11:46:46 -04:00
|
|
|
Leave the list of requested packages as-is, without sorting by dependencies
|
2023-03-19 16:47:11 -04:00
|
|
|
or injecting missing dependencies.
|
|
|
|
|
2023-03-12 07:37:16 -04:00
|
|
|
.TP
|
|
|
|
.B \-\-softdeps
|
|
|
|
Consider optional dependencies when determining the order in which to build
|
2023-06-21 21:16:32 -04:00
|
|
|
the packages passed as arguments (in \fBinstall\fP or \fBsysup\fP operations).
|
2023-03-12 07:37:16 -04:00
|
|
|
Also affects the output of \fBdeptree\fP, \fBdependent\fP, and \fBlistorphans\fP.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-\-cache
|
|
|
|
Use cache file for this command
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-\-test
|
2023-06-23 11:46:46 -04:00
|
|
|
Dry run, don't actually install anything. Mostly interesting for
|
2023-03-12 07:37:16 -04:00
|
|
|
.B prt\-get install, prt\-get update, prt\-get sysup
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-06-21 21:16:32 -04:00
|
|
|
.B \-\-pre\-install
|
2005-11-09 16:43:05 -05:00
|
|
|
Execute pre-install script if it's there
|
|
|
|
|
|
|
|
.TP
|
2023-06-21 21:16:32 -04:00
|
|
|
.B \-\-post\-install
|
2005-11-09 16:43:05 -05:00
|
|
|
Execute post-install script if it's there
|
|
|
|
|
|
|
|
.TP
|
2023-06-21 21:16:32 -04:00
|
|
|
.B \-\-install\-scripts
|
2023-06-23 11:46:46 -04:00
|
|
|
Execute pre-install and post-install script if they're there.
|
|
|
|
|
|
|
|
The options --pre-install, --post-install, and --install-scripts offer a
|
|
|
|
convenient way to temporarily override the prt-get.conf directive 'runscripts
|
|
|
|
no', which was the historical default. Starting with CRUX 3.7, prt-get.conf is
|
|
|
|
being shipped with 'runscripts yes'. To override this default at the command
|
|
|
|
line, you have to pass the more cumbersome option --config-set=\(dqrunscripts
|
|
|
|
no\(dq, or point prt-get to an alternative configuration file using
|
|
|
|
--config=<file>. (see below for the documentation of these options)
|
2005-11-09 16:43:05 -05:00
|
|
|
|
2023-03-12 07:37:16 -04:00
|
|
|
.TP
|
2023-06-21 21:16:32 -04:00
|
|
|
.B \-\-install\-root=<dir>
|
2023-03-12 07:37:16 -04:00
|
|
|
Use <dir> as root directory for your installation; allows you to install
|
|
|
|
the requested packages onto a different directory than '/'. In daily usage,
|
|
|
|
this option is not required; it's primarily interesting if you're developing
|
|
|
|
an independent installation.
|
|
|
|
|
2023-06-19 14:54:06 -04:00
|
|
|
Pre- and post-install scripts will not be executed if the requested
|
|
|
|
root directory lacks a copy of the ports tree. So if you're maintaining an
|
|
|
|
installation mounted somewhere different than '/', it's not enough to put
|
2023-06-21 21:16:32 -04:00
|
|
|
the line 'runscripts yes' in your prt-get.conf; you also have to ensure that the
|
|
|
|
pre- and post-install scripts can be found in the same location relative to <dir>.
|
2023-05-29 08:21:18 -04:00
|
|
|
|
2023-03-12 07:37:16 -04:00
|
|
|
The setting for --install-root determines which package database is used for
|
|
|
|
reading/writing (so <dir>/var/lib/pkg/db must exist), and where the pkg.tar.?z
|
2023-06-19 14:54:06 -04:00
|
|
|
archives get unpacked, but the relevant prt-get.conf and ports tree are those
|
2023-03-12 07:37:16 -04:00
|
|
|
on the parent filesystem. Therefore it is not necessary for <dir> to contain
|
2023-06-19 14:54:06 -04:00
|
|
|
its own copy of the ports tree (unless 'runscripts yes' is desired, as
|
2023-08-24 10:34:02 -04:00
|
|
|
explained above). But each \fBpkgmk(8)\fP process will take place on the parent
|
|
|
|
filesystem, inspecting \fIthe parent filesystem\fP's environment for
|
|
|
|
information about installed ports and available shared libraries. The
|
|
|
|
\fBpkgmk(8)\fP process might therefore draw the wrong conclusions about what
|
|
|
|
functionality should be enabled for an installation to <dir>. If the parent
|
|
|
|
filesystem is more richly populated than <dir>, with respect to installed
|
|
|
|
packages, then the built package might exhibit breakage when \fBpkgadd\fP
|
|
|
|
unpacks it into <dir>.
|
|
|
|
|
|
|
|
When setting --install-root=<dir>, install or update commands might behave
|
|
|
|
unexpectedly if <dir>/etc/pkgadd.conf exists and is different from
|
|
|
|
/etc/pkgadd.conf . In order to preserve the \fBpkgadd.conf(5)\fP settings from
|
2023-06-19 14:54:06 -04:00
|
|
|
host system, append the option --aargs='-c /etc/pkgadd.conf' to your \fBprt\-get
|
|
|
|
install\fP command, or just copy the desired directives into
|
|
|
|
<dir>/etc/pkgadd.conf .
|
2023-03-12 07:37:16 -04:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-\-log
|
2023-06-23 11:46:46 -04:00
|
|
|
Write build output to log file. Basically a convenient alias for
|
|
|
|
\fB\-\-config\-set=\(dqwritelog enabled\(dq\fP. Note that there is no similar
|
|
|
|
alias allowing you to temporarily override the configuration directive
|
|
|
|
\(dqwritelog enabled\(dq; you have to resort to \fB\-\-config\-set=\(dqwritelog
|
|
|
|
disabled\(dq\fP if that is your intention.
|
2023-03-12 07:37:16 -04:00
|
|
|
|
2005-11-09 16:43:05 -05:00
|
|
|
.TP
|
|
|
|
.B \-\-no-std-config
|
|
|
|
Don't parse the default configuration file
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-\-config-prepend=<string>
|
|
|
|
Prepend <string> to configuration
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-\-config-append=<string>
|
|
|
|
Append <string> to configuration
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-\-config-set=<string>
|
|
|
|
Set <string> in configuration, overriding configuration file
|
|
|
|
|
2023-03-12 07:37:16 -04:00
|
|
|
.TP
|
|
|
|
.B \-\-config=<file>
|
2023-06-23 11:46:46 -04:00
|
|
|
Use <file> to read configuration directives, rather than /etc/prt-get.conf.
|
2023-03-12 07:37:16 -04:00
|
|
|
|
|
|
|
.SH ""
|
|
|
|
|
|
|
|
The following options are primarily useful for non-install (information-seeking)
|
|
|
|
transactions, although some of them affect the behaviour of install/upgrade
|
|
|
|
transactions as well.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \-v, \-vv
|
2023-06-19 14:54:06 -04:00
|
|
|
(verbosity level) Show version of a port (-v), or show both version
|
|
|
|
and description (-vv). Passing more than one of these options is equivalent
|
|
|
|
to -vv.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
2017-01-21 06:13:16 -05:00
|
|
|
.TP
|
2005-11-09 16:43:05 -05:00
|
|
|
.B \-\-path
|
2023-03-12 07:37:16 -04:00
|
|
|
Show path info for the ports found by a search or a dependency calculation
|
2005-11-09 16:43:05 -05:00
|
|
|
|
2017-01-21 06:13:16 -05:00
|
|
|
.TP
|
2005-11-09 16:43:05 -05:00
|
|
|
.B \-\-regex
|
|
|
|
Interpret filter and search pattern as regular expression
|
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B \-\-prefer\-higher, \-ph
|
2005-11-09 16:43:05 -05:00
|
|
|
Make prt-get parse the version strings and prefer the higher version,
|
2023-03-12 07:37:16 -04:00
|
|
|
even if the one found in the ports tree is lower. Also used during
|
|
|
|
a sysup operation.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B \-\-strict\-diff, \-sd
|
|
|
|
Override the 'preferhigher' configuration option. Equivalent to
|
2023-03-12 10:23:43 -04:00
|
|
|
.B \-\-config\-set=\(dqpreferhigher no\(dq
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.SH "CONFIGURATION"
|
|
|
|
.TP
|
2023-06-19 14:54:06 -04:00
|
|
|
See man prt-get.conf(5)
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.SH "EXAMPLES"
|
|
|
|
.TP
|
|
|
|
.B prt\-get install irssi
|
2023-03-19 16:47:11 -04:00
|
|
|
Download, build and install irssi (and any of its missing dependencies), with
|
|
|
|
one simple command
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-03-19 16:47:11 -04:00
|
|
|
.B prt\-get install --nodeps jasper
|
|
|
|
Install jasper, without trying to resolve dependencies.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
2023-03-12 07:37:16 -04:00
|
|
|
.TP
|
2023-03-19 16:47:11 -04:00
|
|
|
.B prt\-get update --softdeps webkitgtk
|
|
|
|
Get the latest version of webkitgtk, rebuilding any of its outdated dependencies
|
|
|
|
(hard and soft) in the optimal order.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B prt\-get update -fr openssh
|
2023-03-19 16:47:11 -04:00
|
|
|
Update your current version of openssh, forcing a rebuild even if no version
|
|
|
|
difference is detected.
|
|
|
|
Useful if there was a major soversion change in one of its dependencies,
|
2023-06-19 14:54:06 -04:00
|
|
|
and \fBrevdep openssh\fP indicates a broken package. :-)
|
2005-11-09 16:43:05 -05:00
|
|
|
|
2023-03-12 10:23:43 -04:00
|
|
|
.TP
|
2023-09-01 12:39:47 -04:00
|
|
|
.B MISSLIBS=$(revdep \-vvv mpv | awk \-v FS=: '/(missing library)/ {print $3}'); [ \-n \(dq${MISSLIBS[@]}\(dq ] && for i in ${MISSLIBS[@]}; do prt\-get fsearch $i; done
|
2023-03-12 10:23:43 -04:00
|
|
|
(adapted from a script by ppetrov^) Check for the presence of the runtime libraries needed by mpv.
|
|
|
|
If any are absent, search the footprints to determine which ports provide the missing libraries.
|
|
|
|
|
2023-06-21 21:16:32 -04:00
|
|
|
.TP
|
2023-09-01 12:39:47 -04:00
|
|
|
.B prt\-get isinst $(ls /usr/pkgmk/packages/*.tar.gz | sed 's/.*\e///; s/#.*//;') | awk '/not installed/ { print $2 }'
|
2023-06-21 21:16:32 -04:00
|
|
|
Determine whether there are any packages (in a shared output directory) that
|
|
|
|
have since been uninstalled, or were never installed after a successful run
|
|
|
|
of \fBpkgmk\fP.
|
|
|
|
|
2023-03-19 16:47:11 -04:00
|
|
|
.TP
|
2023-09-01 12:39:47 -04:00
|
|
|
.B prt\-get printf '%i:%p:%n\en' | awk \-v FS=: '/^diff:\e/usr\e/ports\e/core/ { print $3 }' | xargs prt\-get update
|
2023-03-19 16:47:11 -04:00
|
|
|
Basically a \fBsysup\fP operation, but restricted to the core collection.
|
|
|
|
Because core ports are often omitted from the dependency line if they aren't
|
|
|
|
dynamically linked in, the \fBsysup\fP sorting algorithm might not put them
|
|
|
|
at the front of the queue. Run this command before a regular \fBsysup\fP in
|
|
|
|
order to ensure that core ports are updated first.
|
|
|
|
|
2023-03-12 07:37:16 -04:00
|
|
|
.TP
|
2023-09-01 12:39:47 -04:00
|
|
|
.B prt\-get isinst $(prt\-get info ffmpeg | awk \-v FS=: '/^Optional/ {gsub(/,/,\(dq \(dq,$2); print $2}') | awk \-v FS=\(dq \(dq '/not installed/ {print $2}'
|
2023-03-12 07:37:16 -04:00
|
|
|
Show all the optional dependencies of ffmpeg that are not currently installed.
|
|
|
|
|
|
|
|
.TP
|
2023-09-01 12:39:47 -04:00
|
|
|
.B prt\-get isinst $(prt\-get info ffmpeg | awk \-v FS=: '/^Optional/ {gsub(/,/,\(dq \(dq,$2); print $2}') | awk \-v FS=\(dq \(dq '/not installed/ {print $2}' | xargs prt\-get depinst \-\-group \-\-softdeps ffmpeg
|
2023-03-12 10:23:43 -04:00
|
|
|
Extension of the above. Installs ffmpeg and all its optional dependencies, in
|
2023-03-12 07:37:16 -04:00
|
|
|
the order that guarantees a maximal feature set. The --group flag tells
|
|
|
|
\fBprt\-get\fP to abort the operation if any port fails to build, so as not to
|
2023-03-12 10:23:43 -04:00
|
|
|
spend any resources on ffmpeg until all of its optional dependencies are in
|
|
|
|
place.
|
|
|
|
|
|
|
|
.TP
|
2023-09-01 12:39:47 -04:00
|
|
|
.B prt\-get isinst $(if grep \-qE '^ffmpeg:' /etc/prt\-get.softdeps 2>/dev/null; then grep \-E '^ffmpeg:' /etc/prt\-get.softdeps | cut \-d: \-f2 | tr ',' ' '; else prt-get info ffmpeg | awk \-v FS=: '/^Optional/ {gsub(/,/,\(dq \(dq,$2); print $2}'; fi) | awk \-v FS=\(dq \(dq '/not installed/ {print $2}' | xargs prt\-get depinst \-\-group \-\-softdeps ffmpeg
|
2023-03-12 10:23:43 -04:00
|
|
|
Extension of the above (addressing a use case envisioned by ivandi). The
|
|
|
|
user can create the file /etc/prt-get.softdeps containing a line like
|
|
|
|
.B ffmpeg: x264 x265
|
2023-03-19 16:47:11 -04:00
|
|
|
and then the above command will perform a depinst --group operation to
|
|
|
|
ensure that at least x264 and x265 (but not necessarily any of the other
|
|
|
|
optional dependencies) are present before trying to build ffmpeg. In the
|
|
|
|
absence of such a .softdeps config, the operation reverts to the behaviour
|
|
|
|
of the preceding example (maximal feature set). Implementing Gentoo USE
|
|
|
|
flags with such an awkward one-liner might draw criticism from advocates of
|
|
|
|
the KISS principle.
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.TP
|
2023-03-12 07:37:16 -04:00
|
|
|
.B prt\-get search \-\-regex '^(m|n|p)c.*'
|
|
|
|
Return a list of all ports whose names start with "mc", "nc", or "pc"
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B prt\-get dsearch irc
|
|
|
|
Return a list of all ports having "irc" in their name or description
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B comm -13 <(ls /usr/ports/core) <(prt-get listorphans)
|
|
|
|
(based on comments from Romster and jue) Filter out the core ports from the list of orphans, in
|
|
|
|
shells (like bash) that support process substitution
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B comm -13 <(cat ~/.keepers <(ls /usr/ports/core) | sort) <(prt\-get listorphans) | xargs prt\-get remove
|
|
|
|
(system-hosing extension of the above) A one-liner inspired by \fBpkg\-clean\fP
|
2023-03-19 16:47:11 -04:00
|
|
|
and \fBpkgfoster\fP, but without the safeguard of interactivity.
|
|
|
|
\fBDo not try this on a mission-critical system.\fP
|
2023-03-12 07:37:16 -04:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B prt\-get isinst $(prt\-get quickdep $(prt\-get quickdiff)) | awk '/not installed/ {print $2}'
|
2023-03-19 16:47:11 -04:00
|
|
|
(adapted from a comment by Fun) After updating your ports tree, print out a
|
|
|
|
list of dependencies that were not needed the last time you built your
|
|
|
|
currently-installed ports, but are needed now by the newer versions of
|
|
|
|
these ports. The output of this command is sorted by dependencies, therefore
|
2023-03-12 07:37:16 -04:00
|
|
|
suitable for piping to \fBxargs prt\-get install\fP.
|
|
|
|
|
2023-09-04 15:13:04 -04:00
|
|
|
.TP
|
|
|
|
.B comm \-13 <(prt\-get depends firefox\-bin |tail \-n +2 |sort) <(prt\-get depends firefox |tail \-n +2 |sort)
|
|
|
|
Find the build-time dependencies of firefox. Runtime dependencies would
|
|
|
|
also appear in the list generated by the first process substitution, and
|
|
|
|
\fBcomm \-13\fP will suppress what the two lists have in common.
|
|
|
|
|
2023-08-24 10:34:02 -04:00
|
|
|
.TP
|
|
|
|
.B prt\-get isinst $(prt\-get quickdep i3) | awk '/not installed/ { print $2 }' | xargs prt\-get depinst \-\-softdeps \-\-test
|
|
|
|
(inspired by a troubleshooting session with hestia) Assemble a set of install
|
|
|
|
targets needed to build the i3 window manager; sort the list, respecting both
|
|
|
|
hard and soft dependencies; then print how the installation would proceed. The
|
|
|
|
awk filter in the middle is needed to prevent the command from failing with the
|
|
|
|
error message "already installed".
|
|
|
|
|
2023-03-12 07:37:16 -04:00
|
|
|
.TP
|
2023-09-01 12:39:47 -04:00
|
|
|
.B prt\-get printf \(dq%p\et%u\en\(dq | grep myrepo | cut \-f 2
|
2023-03-19 16:47:11 -04:00
|
|
|
Print the upstream URL for each port in the collection \(dqmyrepo\(dq,
|
|
|
|
perhaps as the first step in keeping your personal overlay up to date.
|
2023-03-12 07:37:16 -04:00
|
|
|
|
|
|
|
.TP
|
2023-09-01 12:39:47 -04:00
|
|
|
.B for u in $(prt\-get printf \(dq%M:%p/%n\en\(dq | grep \-i ^unmaintained | cut \-d: \-f2); do cd ${u%/*}; printf \(dq||%s ||\(dq ${u##*/}; git log ${u##*/} | head \-n 5 | awk '/^Date/ { $0=gensub(/^Date:\es+/,"","g"); printf(\(dq %s ||\en\(dq,$0); }'; cd \- >/dev/null; done
|
|
|
|
Generate a table of unmaintained ports and the dates of their most recent
|
|
|
|
commit, in PmWiki syntax (left-justified port names, centered dates).
|
|
|
|
Requires that your repositories are synchronized using the \fBgit(1)\fP driver.
|
|
|
|
Subsequent sorting by date may be done using \fBsort(1)\fP with the flags
|
|
|
|
-k, -M, and -n (the appropriate key defs will depend on your locale).
|
2005-11-09 16:43:05 -05:00
|
|
|
|
2023-09-04 15:13:04 -04:00
|
|
|
.TP
|
|
|
|
.B for L in /var/log/pkgbuild/*.log; do P=${L%__*}; P=${P##*/}; VR=${L##*__}; VR=${VR%.log}; if ! prt\-get isinst $P >/dev/null; then mv $L /var/log/uninstalled/; elif [ \(dq$(prt\-get current $P)\(dq != \(dq$VR\(dq ]; then mv $L /var/log/oldbuild/; fi; done
|
|
|
|
(based on a feature request by samsep10l) a command you can put into a script
|
|
|
|
called by root's crontab, in order to mimic Slackware's tidy directory listings
|
|
|
|
(the main logdir only contains build logs of the latest installed packages;
|
|
|
|
other logs are moved to a separate directory). This particular command relies
|
|
|
|
on declaring \(dqlogfile /var/log/pkgbuild/%n__%v-%r.log\(dq and \(dqwritelog
|
|
|
|
enabled\(dq in \fBprt\-get.conf(5)\fP. Logs saved with a different filename
|
|
|
|
pattern will require slight adjustments to the command.
|
2023-03-12 07:37:16 -04:00
|
|
|
|
|
|
|
.TP
|
2023-09-01 12:39:47 -04:00
|
|
|
.B prt\-get listinst \-\-depsort | xargs prt\-get install \-\-install\-root=/mnt
|
2023-03-12 07:37:16 -04:00
|
|
|
Sort the list of installed packages by dependencies, and then install all
|
2023-03-19 16:47:11 -04:00
|
|
|
those packages onto a backup filesystem (mounted at /mnt). If you have a
|
|
|
|
customized pkgadd.conf that you want applied to this operation, either copy
|
|
|
|
it to /mnt/etc where pkgadd will be looking for it, or pass the additional
|
|
|
|
option \-\-aargs=\(dq\-c /etc/pkgadd.conf\(dq to the install command.
|
2023-03-12 07:37:16 -04:00
|
|
|
|
|
|
|
.TP
|
2023-09-01 12:39:47 -04:00
|
|
|
.B prt\-get list \-\-path \-\-regex '^xorg.*' | grep \-v \(dq/usr/ports/xorg\(dq
|
2023-03-19 16:47:11 -04:00
|
|
|
Show the ports whose names begin with xorg, but which appear outside the
|
|
|
|
xorg port collection.
|
2023-03-12 07:37:16 -04:00
|
|
|
(At the time of writing, this command returned at least two font ports.)
|
2005-11-09 16:43:05 -05:00
|
|
|
|
|
|
|
.SH "AUTHORS"
|
2023-03-12 07:37:16 -04:00
|
|
|
Johannes Winkelmann <jw@tks6.net>, and others cited inline
|
2005-11-09 16:43:05 -05:00
|
|
|
.SH "SEE ALSO"
|
2023-06-19 14:54:06 -04:00
|
|
|
prt-get.conf(5), prt-cache(8), Pkgfile(5), pkgmk(8), pkgadd(8), ports(8)
|