Last active
July 17, 2019 00:45
-
-
Save dlangille/864586d789124d61c19d727eab3fceb9 to your computer and use it in GitHub Desktop.
Upgrading packages after major upgrade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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