apk_glob — a package glob expander with wildcards support
apk_glob
[-ahRrx
]
apkname
...
The apk_glob command lists the installed packages matching given package globs, optionally recursing through dependencies. The output list is sorted in alphabetical order.
The following command line arguments are supported:
apkname_glob
Specify one of these: a full apkname, a apkname without version, or a shell glob pattern to match against apknames or their origins in which you can use wildcards `*', `?', and `[..]', an extended regular expression preceded by a colon `:' to match against apknames or their origins.
Here are some pattern examples:
bind-9.2.5-r6
Specifically “bind-9.2.5-r6”.
bind
Whatever versions of “bind” installed. This would not match “bind-tools”.
'apr-*'
Everything with a “apr-” prefix.
'*utils*'
Everything having a “utils” in the name.
'*sh'
This would not match anything since the version part cannot be omitted if a pattern contains wildcards.
':sh-[0-9].*$'
Everything which name ends with “sh”.
-a
List all the installed packages. Equivalent to
specify '*'
as apkname_glob
.
-h
Show help and exit.
-R
List all those packages required by the given packages as well.
-r
List all those packages depending on the given packages as well.
-x
apkname_glob
Exclude packages matching the specified glob pattern.
Exclusion is performed after recursing dependency in
response to -r
and/or -R
, which
means, for example, the following command will list all the
packages depending on openssl but openssl will be excluded:
apk_glob -rx
openssl openssl
APK_DBDIR
Alternative location for the installed package database.
Default is $ROOT/var/db/apk
.
APK_TMPDIR
Directory where apk_glob stores
temporary files. Default is /tmp
.
APKTOOLS_CONF
Configuration file for the apk-tools suite.
Default is /etc/apk.conf
.
ROOT
Base directory for apk-tools. It is unset by default which
means that /
is the base directory.