aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2014-07-17 02:36:09 +0200
committerCyril Roelandt <tipecaml@gmail.com>2014-07-21 22:18:03 +0200
commit2aa6efb0b9952595853c05294450b4254f64521e (patch)
treec74d8e0122fd6e4f025595fbec6731ea364dc2c9 /doc
parent9c0fc27968c2359c49c324c5f89b38436aa2eb49 (diff)
downloadguix-2aa6efb0b9952595853c05294450b4254f64521e.tar
guix-2aa6efb0b9952595853c05294450b4254f64521e.tar.gz
guix package: add a "show" option.
* doc/guix.texi: Update the documentation. * guix/scripts/package.scm: Add a "show" option. * tests/guix-package.sh: Add a test for the "show" option.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index d30142fcbe..ab9a533047 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -844,6 +844,30 @@ name: gmp
@dots{}
@end example
+@item --show=@var{package}
+Show details about @var{package}, taken from the list of available packages, in
+@code{recutils} format (@pxref{Top, GNU recutils databases,, recutils, GNU
+recutils manual}).
+
+@example
+$ guix package --show=python | recsel -p name,version
+name: python
+version: 2.7.6
+
+name: python
+version: 3.3.5
+@end example
+
+You may also specify the full name of a package to only get details about a
+specific version of it:
+@example
+$ guix package --show=python-3.3.5 | recsel -p name,version
+name: python
+version: 3.3.5
+@end example
+
+
+
@item --list-installed[=@var{regexp}]
@itemx -I [@var{regexp}]
List the currently installed packages in the specified profile, with the