Updating packages on FreeBSD

Command to show a convenient list of packages that require an update.
Packages that differ only by revision are excluded.

pkg version -vL= | awk '{match($1,/[^-]*$/); pkg=substr($1,1,RSTART-2); current=substr($1,RSTART,RLENGTH); gsub(/[\,\_\)].*$/,"",current); gsub(/[\,\_\)].*$/,"",$7); if (current != $7) print (pkg, current, $2, $7)}' | column -t

Leave comment

Notify of new comments using RSS