예를 들어, 실행하면 다음과 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
...