Last Updated: February 25, 2016
·
479
· pentago

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 }