How to configure the http repository on client to get packages from Server in Solaris 11

As per article(https://ervikrant06.wordpress.com/2014/06/14/how-to-create-local-repository-in-solaris-11/)  I have configured the local repository on server. Now Question is do we need to the same thing for each server. Answer is no, we can configure the other servers as client to pull the packages from one server on which repository is configured. It will help us to save the time and space.

root@solaris11:~# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F file:///repo-pool/zfs1/

Now instead of creating the repository on each server We can create the repository on another servers (or client) which can pull packages from the server on which repository is already configured.

Be default it will point to oracle site. Change it to get the packages from “solaris11” which in my case is having IP address 192.168.120.150

root@client11:~# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://pkg.oracle.com/solaris/release/

root@client11:~# pkg set-publisher -G ‘*’ -M ‘*’ -g http://192.168.120.150 solaris

root@client11:~# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://192.168.120.150/

root@client11:~# pkg install diffstat
Packages to install: 1
Create boot environment: No
Create backup boot environment: No

DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 1/1 6/6 0.0/0.0 28.7k/s

PHASE ITEMS
Installing new actions 24/24
Updating package state database Done
Updating image state Done
Creating fast lookup database Done

I rebooted the client11 to see if these repository changes persist after reboot as well. Yes they are.

root@client11:~# init 6

root@client11:~#
login as: root
Using keyboard-interactive authentication.
Password:
Last login: Tue Jun 17 22:07:44 2014 from 192.168.120.1
Oracle Corporation SunOS 5.11 11.1 September 2012
root@solaris11:~# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://192.168.120.150/

 

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