Installing packages in Solaris 11

I want to install EMCpower (EMC Powerpath package) in Solaris 11. At most of the places, I can see procedure to install packages which comes with repository.
This is third party tool, I have downloaded it to /var/tmp. How should I install it ?

root@orapdps11 # pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F file:///export/reposolaris11/
root@orapdps11 # ls -l /var/tmp/EMCpower
total 5
-rw-r--r--   1 29080    43093         85 Jun 18  2012 pkg5.repository
drwxr-xr-x   3 29080    43093          3 Jun 18  2012 publisher
root@orapdps11 #

Please guide me on this.

I'm not sure do you have repo directory inside publisher, but it should be something like this.
Manual configuration:

# pkg set-publisher -g file:/var/tmp/EMCpower/publisher emcpower

or automated configuration

# pkg set-publisher -p file:/var/tmp/EMCpower/publisher

It is like this --

root@orapdps11 # ls -l /var/tmp/EMCpower/publisher/
total 3
drwxr-xr-x   7 29080    43093          7 Jun 18  2012 emc.com
root@orapdps11 # ls -l /var/tmp/EMCpower/publisher/emc.com/
total 19
drwxr-xr-x   2 29080    43093          7 Jun 18  2012 catalog
drwxr-xr-x 142 29080    43093        142 Jun 18  2012 file
drwxr-xr-x   3 29080    43093          3 Jun 18  2012 pkg
drwxr-xr-x   2 29080    43093          3 Jun 18  2012 tmp
drwxr-xr-x   2 29080    43093          2 Jun 18  2012 trans
root@orapdps11 # pkg set-publisher -g file:/var/tmp/EMCpower/publisher emcpower
pkg set-publisher: The origin URIs for 'emcpower' do not appear to point to a valid pkg repository.
Please verify the repository's location and the client's network configuration.
Additional details:
Unable to contact valid package repository
Encountered the following error(s):
Transport errors encountered when trying to contact repository.
Reported the following errors:
file protocol error: code: 22 reason: The path '/var/tmp/EMCpower/publisher' does not contain a valid package repository.
Repository URL: 'file:///var/tmp/EMCpower/publisher'.
root@orapdps11 #

I would try

# pkg set-publisher -g file:/var/tmp/EMCpower/publisher/emc.com emc.com

Added part:
Just for clarification.
I wasn't sure the exact path to repo, because I didn't have access to server.
But I've checked and the shorter path should work too.

# pkg set-publisher -g file:/var/tmp/EMCpower emc.com

It looks like the directory with pkg5.publisher file should be used. That file describes repository.
With argument - p there is no need to write prefix in command line. System probably reads that information from pkg5.publisher.

1 Like

Yes, that worked. Thanks