summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-11-19 23:02:59 +0100
committerLudovic Courtès <ludo@gnu.org>2012-11-19 23:04:38 +0100
commit64fc89b6ec0928f7bbd7011d6a8dc325d63f4fe5 (patch)
tree131fad75147e00ae73c7201f557df1fdd540011a /doc
parentba326ce41b5784f3acb99d4beae5ffc455d6a27e (diff)
downloadguix-64fc89b6ec0928f7bbd7011d6a8dc325d63f4fe5.tar.gz
guix-package: Add `--list-available'.
* guix-package.in (show-help, %options): Add `--list-available'.
  (guix-package)[process-query]: Add support for `--list-available'.
* doc/guix.texi (Invoking guix-package): Document it.
* tests/guix-package.sh: Add test.

* guix/ui.scm (location->string): New procedure.
* guix/utils.scm: Export <location>.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index a93510ee23..d09bbf1acf 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -257,6 +257,15 @@ is installed (for instance, @code{out} for the default output,
 @code{include} for its headers, etc.), and the path of this package in
 the store.
 
+@item --list-available[=@var{regexp}]
+@itemx -A [@var{regexp}]
+List packages currently available in the software distribution.  When
+@var{regexp} is specified, list only installed packages whose name
+matches @var{regexp}.
+
+For each package, print the following items separated by tabs: its name,
+its version string, and the source location of its definition.
+
 @end table