g6r-rq
Last Updated: February 25, 2016
·
324
· pentago
154217343e9947436ed4e790ea10c787

Shell function to update ports for all FreeBSD jails

Lists all jails using jls, filters output to return just jail ID's and execute portmaster via jexec for all returned jail ID's.

jup() { for jid in $(jls | cut -d ' ' -f5-6 | sed 1d); do sudo jexec $jid portmaster -a; done }

Say Thanks
Respond
Filed Under