aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-04-18 22:30:07 +0200
committerLudovic Courtès <ludo@gnu.org>2015-04-18 22:57:52 +0200
commit724311a26b5205dd5721439389ab70aab4082371 (patch)
treeed008a2e9b709cb74b3973efbaace6d984b8333c /doc
parente7bf0e446553d928b2adef84a70f274f242b1b88 (diff)
downloadpatches-724311a26b5205dd5721439389ab70aab4082371.tar
patches-724311a26b5205dd5721439389ab70aab4082371.tar.gz
packages: Allow package lookups with version prefixes.
* gnu/packages.scm (find-packages-by-name): Sort MATCHING according to 'version>?'. Use 'string-prefix?' instead of 'string=?' to compare against VERSION. * doc/guix.texi (Invoking guix package): Add example and explanation.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index ad572365a8..69d65998c5 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -962,7 +962,10 @@ Install the specified @var{package}s.
Each @var{package} may specify either a simple package name, such as
@code{guile}, or a package name followed by a hyphen and version number,
-such as @code{guile-1.8.8}. If no version number is specified, the
+such as @code{guile-1.8.8} or simply @code{guile-1.8} (in the latter
+case, the newest version prefixed by @code{1.8} is selected.)
+
+If no version number is specified, the
newest available version will be selected. In addition, @var{package}
may contain a colon, followed by the name of one of the outputs of the
package, as in @code{gcc:doc} or @code{binutils-2.22:lib}