Guix
如何僅顯示“guix 搜尋”的結果名稱
例如,當我跑步時,
guix search openjdk
我會得到一長串資訊,其中大部分我都不感興趣:name: openjdk version: 9.181 outputs: out jdk doc systems: x86_64-linux i686-linux dependencies: alsa-lib@1.2.3.2 cups@2.3.3 fontconfig@2.13.1 freetype@2.10.1 giflib@5.2.1 icedtea@3.7.0 lcms@2.9 + libelf@0.8.13 libice@1.0.10 libjpeg-turbo@2.0.4 libpng@1.6.37 libx11@1.6.9 libxcomposite@0.4.5 libxi@1.7.10 + libxinerama@1.1.4 libxrender@0.9.10 libxt@1.2.0 libxtst@1.2.3 make@4.2.1 unzip@6.0 which@2.21 zip@3.0 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: alsa-lib@1.2.3.2 autoconf@2.69 cups@2.3.3 fontconfig@2.13.1 freetype@2.10.1 giflib@5.2.1 lcms@2.9 + libjpeg-turbo@2.0.4 libpng@1.6.37 libx11@1.6.9 libxext@1.3.4 libxrandr@1.5.2 libxrender@0.9.10 libxt@1.2.0 + libxtst@1.2.3 make@4.2.1 openjdk@13.0 pkg-config@0.29.2 unzip@6.0 which@2.21 zip@3.0 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 ...
有沒有辦法只顯示每個包的名稱和版本?
是的,使用小實用程序
recsel
(來自recutils
包):$ guix search openjdk | recsel -p name,version name: openjdk version: 9.181 name: openjdk version: 14.0 ...