doc: Add elaborate package search example.
* doc/guix.texi (Invoking guix package): Add elaborate --search example using recsel and sexes.master
parent
c8d969b58f
commit
b110869dd3
|
@ -1434,6 +1434,7 @@ availability of packages:
|
||||||
|
|
||||||
@item --search=@var{regexp}
|
@item --search=@var{regexp}
|
||||||
@itemx -s @var{regexp}
|
@itemx -s @var{regexp}
|
||||||
|
@cindex searching for packages
|
||||||
List the available packages whose name, synopsis, or description matches
|
List the available packages whose name, synopsis, or description matches
|
||||||
@var{regexp}. Print all the meta-data of matching packages in
|
@var{regexp}. Print all the meta-data of matching packages in
|
||||||
@code{recutils} format (@pxref{Top, GNU recutils databases,, recutils,
|
@code{recutils} format (@pxref{Top, GNU recutils databases,, recutils,
|
||||||
|
@ -1477,6 +1478,19 @@ that deal with printed circuit boards; removing the angle brackets
|
||||||
around @code{board} would further add packages that have to do with
|
around @code{board} would further add packages that have to do with
|
||||||
keyboards.
|
keyboards.
|
||||||
|
|
||||||
|
And now for a more elaborate example. The following command searches
|
||||||
|
for cryptographic libraries, filters out Haskell, Perl, Python, and Ruby
|
||||||
|
libraries, and prints the name and synopsis of the matching packages:
|
||||||
|
|
||||||
|
@example
|
||||||
|
$ guix package -s crypto -s library | \
|
||||||
|
recsel -e '! (name ~ "^(ghc|perl|python|ruby)")' -p name,synopsis
|
||||||
|
@end example
|
||||||
|
|
||||||
|
@noindent
|
||||||
|
@xref{Selection Expressions,,, recutils, GNU recutils manual}, for more
|
||||||
|
information on @dfn{selection expressions} for @code{recsel -e}.
|
||||||
|
|
||||||
@item --show=@var{package}
|
@item --show=@var{package}
|
||||||
Show details about @var{package}, taken from the list of available packages, in
|
Show details about @var{package}, taken from the list of available packages, in
|
||||||
@code{recutils} format (@pxref{Top, GNU recutils databases,, recutils, GNU
|
@code{recutils} format (@pxref{Top, GNU recutils databases,, recutils, GNU
|
||||||
|
|
Loading…
Reference in New Issue