Skip to content

Instantly share code, notes, and snippets.

@mattconnolly
Created December 5, 2013 12:01
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mattconnolly/7804176 to your computer and use it in GitHub Desktop.
Save mattconnolly/7804176 to your computer and use it in GitHub Desktop.
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