Skip to content

Instantly share code, notes, and snippets.

@dlangille
Last active July 17, 2019 00:45
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/864586d789124d61c19d727eab3fceb9 to your computer and use it in GitHub Desktop.
Save dlangille/864586d789124d61c19d727eab3fceb9 to your computer and use it in GitHub Desktop.
Upgrading packages after major upgrade
# For me, I need to update this file and adjust the repo it uses.
/usr/local/etc/pkg/repos/local.conf
#
#e.g:
#
#local: {
# url: "pkg+http://fedex.unixathome.org/packages/120amd64-default-master-list/"
# mirror_type: "srv",
# signature_type: "PUBKEY",
# pubkey: "/etc/ssl/slocum.unixathome.org.cert",
# enabled: true
#}
#
# That 120 was 112 before the upgrade.
# upgrade pkg
pkg-static upgrade -f pkg
# upgrade everything
pkg upgrade -f
# remove stuff no longer installed as a dependency
pkg autoremove
# was everything upgraded? designed for bash shell
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