Steffen's Knowledge Base

Created at: 2019-09-23 15:46:00
Last modified at: 2024-03-22 11:15:54
Author: Steffen Rick

Pkg commands

Fancy pkg commands

Print the FreeBSD version the package was compiled on. Pipe through AWK to only have the package name.

pkg query "%n-%v: %q"
pkg query "%n-%v: %q" | awk '/FreeBSD:10:amd64/ { sub(/:/,"",$1); print $1 }'