apk_info — a utility for displaying information on software package
apk_info [-cfhIiKkLqRrSsUuvw] [-e apkname]
apkname
...
apk_info [-q] -W apkname
apk_info
The apk_info command is used to dump out information for packages, either software package archives or already installed on the system with the apk_add command.
The following command line arguments are supported:
apk-nameThe named packages are described. A package name may be either the name of an installed package, the pathname to a package file or a full URI to a remote package.
If a full URI is specified, the package will
be downloaded to the $PACKAGES directory.
-cShow the (one line) comment field for each package.
-e apk-name
If the package identified by apk-name is currently
installed, return 0, otherwise return 1. This option allows you to easily test for
the presence of another package from a script.
-fIf package is not installed, download it to $ROOT/var/cache/packages.
-hShow help and exit.
-IShow the pre-install script (if any) for each package.
-iShow the post-install script (if any) for each package.
-KShow the pre-deinstall script (if any) for each package.
-kShow the post-deinstall script (if any) for each package.
-LShow the files within each package.
-qQuiet mode. Supress non-error messages.
-RShow the list of packages on which each package depends.
-rShow the list of installed packages which require each package.
-SShow all scripts in package; pre-install, pre-update, post-install, post-update, pre-delete and post-delete.
-sShow the size for each package.
-UShow the pre-update script (if any) for each package.
-uShow the post-update script (if any) for each package.
-vTurn on verbose output.
-W filename
Show which package the specified filename argument
belongs to. If the file is not in the current directory, and does not have an absolute
path, then the PATH is searched using which(1).
-wShow the URL to the homepage for each package.
Package info is either extracted from package files named on the command
line, or from already installed package information
in $ROOT/var/db/apk/pkgname-ver where
pkgname-ver is the package name (with version) in question.
APK_DBDIR
Alternative location for the installed package database.
Default is $ROOT/var/db/apk.
APK_PATHList of URI's to remote package repository mirrors. The URI's are separated by a semicolon (;).
PACKAGES
Base directory where apk_info saves downloaded
packages. Default is $ROOT/var/cache/packages.
ROOT
Base directory for apk-tools. It is unset by default which
means that / is the base directory.