How to configure publisher and install packages in Oracle Solaris 11

Connect to Oracle Support and Download the certificates


Set proxy if you have one

 #export https_proxy=https://usuario:password@191.118.2.110:8080
 #export http_proxy=http://usuario:password@191.118.2.110:8080

You can add in the profile this information in order to have them configured in the login


1.-Download the ssl certicates in order to install them in the server

2.-Create a directory /var/pkg/ssl.

#mkdir -p 755  /var/pkg/ssl
3.-Copy or Move the cerrtificates

 # cd /var/pkg/ssl/
 # ls -ltr
total 53
-rw-r--r--   1 root     root        1679 Mar 27 13:36 Oracle_Solaris_11_Support.key.pem
-rw-r--r--   1 root     root         932 Mar 27 13:36 Oracle_Solaris_11_Support.certificate.pem
4.-
# pkg set-publisher \
 -k /var/pkg/ssl/Oracle_Solaris_11_Support.key.pem \ -c /var/pkg/ssl/Oracle_Solaris_11_Support.certificate.pem \ -g https://pkg.oracle.com/solaris/support/ \ -G http://pkg.oracle.com/solaris/release/ solaris

 

5.-Verify the new publisher


 # pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F https://pkg.oracle.com/solaris/support/

6.-Update the packages in the repository, depending packages installed or upgraded a new boot environment will be created


#pkg update -nv

7.-Searching and Installing a packages for example "wget"


# pkg search wget

# pkg install wget

8.- Unconfigure repository

#pkg unset-publisher solaris

Regards
Roger Jerdez

Comments