Switching to OmniOSce

To transition an existing system that is running OmniOS r151022 to the OmniOS Community Edition, install the OmniOSce CA certificate, change the pkg publisher, and run pkg update, as follows.

Get a copy of the OmniOSce CA certificate.

# wget -P /etc/ssl/pkg \
    https://downloads.omniosce.org/ssl/omniosce-ca.cert.pem

Check the certificate fingerprint.

# openssl x509 -fingerprint -in /etc/ssl/pkg/omniosce-ca.cert.pem -noout

The fingerprint should match this:

8D:CD:F9:D0:76:CD:AF:C1:62:AF:89:51:AF:8A:0E:35:24:4C:66:6D

Change the publisher to the OmniOSce repo

# pkg set-publisher -P -G '*' -g https://pkg.omniosce.org/r151022/core/ omnios

If you have zones, change the publisher of each native zone. To get a list of all your zones, run zoneadm list -cv. For each <zone_root>, add the zone’s /root to the PATH given in the list.

# pkg -R <zone_root> set-publisher -P -G '*' -g https://pkg.omniosce.org/r151022/core/ omnios

Install the OmniOSce CA certificate.

# pkg update -rv web/ca-bundle

The downloaded OmniOSce CA certificate can be removed after it is installed.

# rm /etc/ssl/pkg/omniosce-ca.cert.pem

Finally, update as usual.

# pkg update -rv

Upgrading from older versions of OmniOS to current OmniOS CE

If you are running OmniOS r14 or later and want to try and ‘jump’ right to the latest OmniOS CE. The following recepie MIGHT work. This is just a bunch of steps that have worked for some setups …

Are there any zones ? if so … detach them!

wget -P /etc/ssl/pkg \
    https://downloads.omniosce.org/ssl/omniosce-ca.cert.pem
pkg set-publisher -P -G '*' -g https://pkg.omniosce.org/r151024/core/ omnios
pkg update -n -v web/ca-bundle
pkg update -v -n \
	--reject pkg:/network/ssh \
	--reject pkg:/network/ssh/ssh-key \
	--reject pkg:/service/network/ssh \
	--reject pkg:/service/network/ssh-common \
	--reject pkg://omnios/runtime/python-26 \
	`pkg update -nv  --reject pkg://omnios/runtime/python-26 |& grep Reject | sed 's/Reject:/--reject/g'` --be-name r151024

if that worked and you were successful in upgrading you can try getting at your zones by upgrading them ‘from the outside’.

pkg -R /myzone-pool/zones/my-zone-1/root/ set-publisher -P -G '*' -g https://pkg.omniosce.org/r151024/core/ omnios
pkg -R /myzone-pool/zones/my-zone-1/root/ update -v -n \
	--reject pkg:/network/ssh \
	--reject pkg:/network/ssh/ssh-key \
	--reject pkg:/service/network/ssh \
	--reject pkg:/service/network/ssh-common \
	--reject pkg://omnios/runtime/python-26 \
	`pkg update -nv  --reject pkg://omnios/runtime/python-26 |& grep Reject | sed 's/Reject:/--reject/g'` --be-name r151024

now re-attach your zones …

good luck!