Using pkg in documentation

Samy Mahmoudi samy.mahmoudi at gmail.com
Mon Apr 27 00:16:00 UTC 2020


>  PY=`pkg rquery -r FreeBSD "%dn" lang/python | head -n 1 | sed
"s/python//"`

You can even replace head with a sed command if you need to save some
characters on the line:
PY=`pkg rquery -r FreeBSD "%dn" lang/python | sed "s/python//;1q"`

>


More information about the freebsd-ports mailing list