Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Upgrading pkgin repository for a SmartOS zone.

Upgrading SmartOS zone

Make a snapshot first! Upgrading from 2013Q1 to 2013Q3 because I needed newer nginx.

Update pkgin repository

edit the files at:

/opt/local/etc/pkg_install.conf
/opt/local/etc/pkgin/repositories.conf

to use 2013Q3 path, and then:

# pkgin update
# pkgin fug
pkgin: scmgit-base-1.8.1.5 has no associated repository
...

Looks like git did not survive the upgrade so I had to manually uninstall it. So:

# pkgin rm scmgit-base-1.8.1.5
4 packages to delete: scmgit-1.8.1.5 build-essential-1.1 scmgit-gitk-1.8.1.5 scmgit-base-1.8.1.5
proceed ? [Y/n] y
removing scmgit-1.8.1.5...
removing build-essential-1.1...
removing scmgit-gitk-1.8.1.5...
removing scmgit-base-1.8.1.5...
pkg_install warnings: 0, errors: 0
reading local summary...
processing local summary...
updating database: 100%
# pkgin fug
...

Then 96 packages to update, 106 to install... and finally:

# pkgin in scmgit
# svcadm restart nginx

Rebooted the machine to be sure, and all good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment