apk_glob — a package glob expander with wildcards support
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:
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:
Whatever versions of “bind” installed. This would not match “bind-tools”.
Everything with a “apr-” prefix.
Everything having a “utils” in the name.
This would not match anything since the version part cannot be omitted if a pattern contains wildcards.
Everything which name ends with “sh”.
List all the installed packages. Equivalent to
Show help and exit.
List all those packages required by the given packages as well.
List all those packages depending on the given packages as well.
Exclude packages matching the specified glob pattern.
Exclusion is performed after recursing dependency in
means, for example, the following command will list all the
packages depending on openssl but openssl will be excluded:
Alternative location for the installed package database.
Directory where apk_glob stores
temporary files. Default is
Configuration file for the apk-tools suite.
Base directory for apk-tools. It is unset by default which
/ is the base directory.
Default location for the installed package database.
Default location of the apk-tools configuration file.
Default location for temporary files and directories.