たとえば、実行すると、次guix search openjdk
の情報の長いリストが得られますが、そのほとんどは興味がありません。
name: openjdk
version: 9.181
outputs: out jdk doc
systems: x86_64-linux i686-linux
dependencies: [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
+ [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
+ [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
location: gnu/packages/java.scm:1872:2
homepage: https://openjdk.java.net/projects/jdk9/
license: GPL 2+
synopsis: Java development kit
description: This package provides the Java development kit OpenJDK.
relevance: 22
name: openjdk
version: 14.0
outputs: out jdk doc
systems: x86_64-linux i686-linux
dependencies: [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
+ [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
+ [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
location: gnu/packages/java.scm:2379:2
homepage: https://openjdk.java.net/projects/jdk/14
license: GPL 2+
synopsis: Java development kit
description: This package provides the Java development kit OpenJDK.
relevance: 22
...
各パッケージの名前とバージョンのみを表示する方法はありますか?
ベストアンサー1
recsel
はい、(recutils
パッケージ内の)小さなユーティリティを使用します。
$ guix search openjdk | recsel -p name,version
name: openjdk
version: 9.181
name: openjdk
version: 14.0
...