summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-01-07 20:32:05 -0500
committerTimo Teräs <timo.teras@iki.fi>2020-01-26 09:01:26 +0200
commit82096e9e670755c103b36c7930ce9c5cef22b3fc (patch)
tree8ab1358ed08a14459450e820a5e552d8715191f7
parent0f2740f067c5bc3ecc0921034d80742ba31eff4e (diff)
downloadapk-tools-82096e9e670755c103b36c7930ce9c5cef22b3fc.tar.gz
apk-tools-82096e9e670755c103b36c7930ce9c5cef22b3fc.tar.bz2
apk-tools-82096e9e670755c103b36c7930ce9c5cef22b3fc.tar.xz
apk-tools-82096e9e670755c103b36c7930ce9c5cef22b3fc.zip
add apk-info(8)
-rw-r--r--doc/Makefile1
-rw-r--r--doc/apk-info.8.scd76
2 files changed, 77 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
index da6258c..4425e83 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -9,6 +9,7 @@ docs: $(obj)/apk.8 \
$(obj)/apk-cache.8 \
$(obj)/apk-del.8 \
$(obj)/apk-fix.8 \
+ $(obj)/apk-info.8 \
$(obj)/apk-update.8 \
$(obj)/apk-upgrade.8 \
$(obj)/apk-repositories.5 \
diff --git a/doc/apk-info.8.scd b/doc/apk-info.8.scd
new file mode 100644
index 0000000..e7f22b8
--- /dev/null
+++ b/doc/apk-info.8.scd
@@ -0,0 +1,76 @@
+apk-info(8)
+
+# NAME
+
+apk info - print detailed information about packages
+
+# SYNOPSIS
+
+*apk info* [<_options_>...] _packages_...
+
+*apk info* -W _file_
+
+# DESCRIPTION
+
+*apk info* prints information known about the listed packages. By default, it
+prints the description, webpage, and installed size of the package (equivalent
+to *apk info -dws*).
+
+Each field printed is prefaced by the name of the package and its package
+version, then the field to be displayed, and a newline. The following lines
+display the appropriate information, then an empty line terminates that field.
+
+*apk info -W* _file_ prints the package which owns the specified file.
+
+# OPTIONS
+
+*-a, --all*
+ List all information known about the package.
+
+*-d, --description*
+ Print the package description.
+
+*-e, --installed*
+ Check if the package is installed, printing its name and exiting with
+ status code zero if so, or exiting with a nonzero status code otherwise.
+
+*-L, --contents*
+ List files included in the package.
+
+*-i, --install-if*
+ List the package's install_if rule, if configured (i.e. the conditions
+ under which this package will be installed automatically).
+
+*-I, --rinstall-if*
+ List other packages whose install_if rules refer to this package.
+
+*-r, --rdepends*
+ List reverse dependencies of the package (all other packages which
+ depend on the package).
+
+*-R, --depends*
+ List the dependencies of the package.
+
+*-s, --size*
+ Print the package's installed size.
+
+*-w, --webpage*
+ Print the URL for the package's upstream webpage.
+
+*-W, --who-owns*
+ Print the package which owns the specified file.
+
+*--license*
+ Print the package SPDX license identifier.
+
+*--replaces*
+ List the other packages for which this package is marked as a
+ replacement.
+
+*--triggers*
+ Print active triggers for the package.
+
+# AUTHORS
+
+Natanael Copa <ncopa@alpinelinux.org>++
+Timo Teräs <_timo.teras@iki.fi_>