Skip to content

Instantly share code, notes, and snippets.

@dlangille
Created June 21, 2019 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlangille/db1039125614f2a58e40e07734e08d7f to your computer and use it in GitHub Desktop.
Save dlangille/db1039125614f2a58e40e07734e08d7f to your computer and use it in GitHub Desktop.
Upgrading jail after updating the OS within the jail
alter /usr/local/etc/pkg/repos/local.conf to use new jail
pkg-static install -f pkg
pkg upgrade -f
pkg autoremove
# the above should have upgrade all packages and the following check verifies it.
# any package not upgraded, needs to be built, and added to the build list.
pkg query -a '%n %t' | awk -v t=$(date -v -6H +%s) '$2 < t { print $1 }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment