November 5, 2012

Solaris 11: how to verify if a system is IPS repository

Posted in Solaris at 2:50 pm by alessiodini

I’m studying for Solaris 11 OCP. During my experiments i tought about to know if a system is an ips repository. The answer is very easy , for this purpose we have few methods we can use:

1) Verify the publisher
root@superserver:/sun-temp# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online http://superserver/
root@superserver:/sun-temp#

2) Check the pkg/server manifest
root@superserver:/sun-temp# svcs svc:/application/pkg/server:default
STATE STIME FMRI
online 14:22:56 svc:/application/pkg/server:default

Well in this case i want to know where repository files are stored.
root@superserver:/sun-temp# svcprop svc:/application/pkg/server:default | grep inst
pkg/inst_root astring /export/IPS/repo

Ok now i know /export/IPS/repo as filesystem repository. Let’s ask it his status !
root@superserver:/sun-temp# pkgrepo info -s /export/IPS/repo
PUBLISHER PACKAGES STATUS UPDATED
solaris 4292 online 2011-10-26T17:17:30.230911Z

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: