Package Administration is so easy with the help of SRU's (Support Repository Update).
Either we can directly access the SRU through https://pkg.oracle.com/solaris/support/
OR
we can copy the iso file and can configure any server a packaging server through which we can access the repo from any client server.
To use this repo we create a publisher on our packaging server and will be shared across network.
Let us see how to configure packaging server.
We need the iso of SRU, copy it to our packaging server and take a sync of it.Then create publisher basing on the location of sync...
root-mysrv1:/#
root-mysrv1:/# cd /opt
root-mysrv1:/#
root-mysrv1:/opt# ls -lrth
total 9720689
drwxr-xr-x 3 root root 11 Nov 17 2010 145880-02
drwxr-xr-x 4 root root 5 Jun 1 2011 OVM_Server_SPARC-2_1
-rw-r--r-- 1 root root 2.7G Nov 7 2012 sol-11-1111-sru13-04-incr-repo.iso ------ this is my sru iso file...
-rw-rw-r-- 1 root root 90K Nov 21 2012 readme.html
-rw-rw-r-- 1 root root 73K Nov 21 2012 readme.txt
-rw-r--r-- 1 root root 2.0G May 12 2013 p15879286_1100_SOLARIS64.zip
root-mysrv1:/opt#
root-mysrv1:/opt# cd /
root-mysrv1:/#
root-mysrv1:/# mount -F hsfs /opt/sol-11-1111-sru13-04-incr-repo.iso /mnt
root-mysrv1:/#
root-mysrv1:/#
root-mysrv1:/# cd /mnt
root-mysrv1:/mnt#
root-mysrv1:/mnt# ls -lrth
total 20
drwxr-xr-x 3 root root 2.0K Nov 7 2012 repo
-rwxr-xr-x 1 root root 1.3K Nov 7 2012 NOTICES
-rw-r--r-- 1 root root 3.2K Nov 7 2012 COPYRIGHT
-rw-r--r-- 1 root root 3.0K Nov 7 2012 README
root-mysrv1:/mnt#
root-mysrv1:/mnt#
root-mysrv1:/mnt# cd /
root-mysrv1:/#
root-mysrv1:/# pkg publisher
PUBLISHER TYPE STATUS URI
root-mysrv1:/#
root-mysrv1:/# rsync -aP /mnt/repo /export/repoSolaris11
sending incremental file list
created directory /export/repoSolaris11
repo/
repo/pkg5.repository
300 100% 0.00kB/s 0:00:00 (xfer#1, to-check=1235/1237)
repo/publisher/
repo/publisher/solaris/
repo/publisher/solaris/catalog/
repo/publisher/solaris/catalog/catalog.attrs
732 100% 714.84kB/s 0:00:00 (xfer#2, to-check=1226/1237)
repo/publisher/solaris/catalog/catalog.base.C
61715 100% 119.82kB/s 0:00:00 (xfer#3, to-check=1225/1237)
repo/publisher/solaris/catalog/catalog.dependency.C
682512 100% 1.18MB/s 0:00:00 (xfer#4, to-check=1224/1237)
repo/publisher/solaris/catalog/catalog.summary.C
287490 100% 490.83kB/s 0:00:00 (xfer#5, to-check=1223/1237)
repo/publisher/solaris/catalog/update.20121107T00Z.C
1079095 100% 1.53MB/s 0:00:00 (xfer#6, to-check=1222/1237)
repo/publisher/solaris/file/
repo/publisher/solaris/file/00/
repo/publisher/solaris/file/00/00001904e440b8c2a7733ce4bb65e9f8edde72b6
5841 100% 7.61kB/s 0:00:00 (xfer#7, to-check=1615/1887)
repo/publisher/solaris/file/00/00001d488d4978cfd1776ce8da5b284b3349ab49
10419 100% 13.55kB/s 0:00:00 (xfer#8, to-check=1614/1887)
repo/publisher/solaris/file/00/0000700262b4d3c65f457dbcae41beafe04956ed
13850 100% 17.94kB/s 0:00:00 (xfer#9, to-check=1613/1887)
repo/publisher/solaris/file/00/00017c0b1e5058dd73df952c6a7e9fdb43b9f851
4959 100% 6.41kB/s 0:00:00 (xfer#10, to-check=1612/1887)
....... OUTPUT TRUNCATED .......
root-mysrv1:/#
root-mysrv1:/#
root-mysrv1:/# svccfg -s application/pkg/server setprop pkg/inst_root=/export/repoSolaris11
root-mysrv1:/#
If we want, we can specify read and write permissions accordingly...
root-mysrv1:/# svccfg -s application/pkg/server setprop pkg/readonly=true
root-mysrv1:/#
Refresh and enable the service so that it will update its configuration
root-mysrv1:/#
root-mysrv1:/# svcadm refresh application/pkg/server
root-mysrv1:/#
root-mysrv1:/# svcadm enable application/pkg/server
root-mysrv1:/#
Set the publisher in our packaging server :
root-mysrv1:/# pkgrepo -s /repo refresh
root-mysrv1:/#
root-mysrv1:/# pkg set-publisher -G ‘*’ -g file:///export/repoSolaris11 solaris
root-mysrv1:/#
root-mysrv1:/# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online file:///export/repoSolaris11
To provide access only for this server it is enough...
Now to enable this publisher in remote server we need to create publisher in required clients as below. Clients access the repository via HTTP.
As publisher is created with /export/repoSolaris11 directory which is exact location of repo data, only the IP of packaging server is sufficient as url.
root-clntsrv1:/#
root-clntsrv1:/# pkg set-publisher -G ‘*’ -g http://10.20.10.25 solaris
---Here my packaging server's IP is : 10.20.10.25root-clntsrv1:/#
To unset any publisher,
root-clntsrv1:/# pkg unset-publisher <publishername>
##################################################################################
Either we can directly access the SRU through https://pkg.oracle.com/solaris/support/
OR
we can copy the iso file and can configure any server a packaging server through which we can access the repo from any client server.
To use this repo we create a publisher on our packaging server and will be shared across network.
Let us see how to configure packaging server.
We need the iso of SRU, copy it to our packaging server and take a sync of it.Then create publisher basing on the location of sync...
root-mysrv1:/#
root-mysrv1:/# cd /opt
root-mysrv1:/#
root-mysrv1:/opt# ls -lrth
total 9720689
drwxr-xr-x 3 root root 11 Nov 17 2010 145880-02
drwxr-xr-x 4 root root 5 Jun 1 2011 OVM_Server_SPARC-2_1
-rw-r--r-- 1 root root 2.7G Nov 7 2012 sol-11-1111-sru13-04-incr-repo.iso ------ this is my sru iso file...
-rw-rw-r-- 1 root root 90K Nov 21 2012 readme.html
-rw-rw-r-- 1 root root 73K Nov 21 2012 readme.txt
-rw-r--r-- 1 root root 2.0G May 12 2013 p15879286_1100_SOLARIS64.zip
root-mysrv1:/opt#
root-mysrv1:/opt# cd /
root-mysrv1:/#
root-mysrv1:/# mount -F hsfs /opt/sol-11-1111-sru13-04-incr-repo.iso /mnt
root-mysrv1:/#
root-mysrv1:/#
root-mysrv1:/# cd /mnt
root-mysrv1:/mnt#
root-mysrv1:/mnt# ls -lrth
total 20
drwxr-xr-x 3 root root 2.0K Nov 7 2012 repo
-rwxr-xr-x 1 root root 1.3K Nov 7 2012 NOTICES
-rw-r--r-- 1 root root 3.2K Nov 7 2012 COPYRIGHT
-rw-r--r-- 1 root root 3.0K Nov 7 2012 README
root-mysrv1:/mnt#
root-mysrv1:/mnt#
root-mysrv1:/mnt# cd /
root-mysrv1:/#
root-mysrv1:/# pkg publisher
PUBLISHER TYPE STATUS URI
root-mysrv1:/#
root-mysrv1:/# rsync -aP /mnt/repo /export/repoSolaris11
sending incremental file list
created directory /export/repoSolaris11
repo/
repo/pkg5.repository
300 100% 0.00kB/s 0:00:00 (xfer#1, to-check=1235/1237)
repo/publisher/
repo/publisher/solaris/
repo/publisher/solaris/catalog/
repo/publisher/solaris/catalog/catalog.attrs
732 100% 714.84kB/s 0:00:00 (xfer#2, to-check=1226/1237)
repo/publisher/solaris/catalog/catalog.base.C
61715 100% 119.82kB/s 0:00:00 (xfer#3, to-check=1225/1237)
repo/publisher/solaris/catalog/catalog.dependency.C
682512 100% 1.18MB/s 0:00:00 (xfer#4, to-check=1224/1237)
repo/publisher/solaris/catalog/catalog.summary.C
287490 100% 490.83kB/s 0:00:00 (xfer#5, to-check=1223/1237)
repo/publisher/solaris/catalog/update.20121107T00Z.C
1079095 100% 1.53MB/s 0:00:00 (xfer#6, to-check=1222/1237)
repo/publisher/solaris/file/
repo/publisher/solaris/file/00/
repo/publisher/solaris/file/00/00001904e440b8c2a7733ce4bb65e9f8edde72b6
5841 100% 7.61kB/s 0:00:00 (xfer#7, to-check=1615/1887)
repo/publisher/solaris/file/00/00001d488d4978cfd1776ce8da5b284b3349ab49
10419 100% 13.55kB/s 0:00:00 (xfer#8, to-check=1614/1887)
repo/publisher/solaris/file/00/0000700262b4d3c65f457dbcae41beafe04956ed
13850 100% 17.94kB/s 0:00:00 (xfer#9, to-check=1613/1887)
repo/publisher/solaris/file/00/00017c0b1e5058dd73df952c6a7e9fdb43b9f851
4959 100% 6.41kB/s 0:00:00 (xfer#10, to-check=1612/1887)
....... OUTPUT TRUNCATED .......
root-mysrv1:/#
root-mysrv1:/#
root-mysrv1:/# svccfg -s application/pkg/server setprop pkg/inst_root=/export/repoSolaris11
root-mysrv1:/#
If we want, we can specify read and write permissions accordingly...
root-mysrv1:/# svccfg -s application/pkg/server setprop pkg/readonly=true
root-mysrv1:/#
Refresh and enable the service so that it will update its configuration
root-mysrv1:/#
root-mysrv1:/# svcadm refresh application/pkg/server
root-mysrv1:/#
root-mysrv1:/# svcadm enable application/pkg/server
root-mysrv1:/#
Set the publisher in our packaging server :
root-mysrv1:/# pkgrepo -s /repo refresh
root-mysrv1:/#
root-mysrv1:/# pkg set-publisher -G ‘*’ -g file:///export/repoSolaris11 solaris
root-mysrv1:/#
root-mysrv1:/# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online file:///export/repoSolaris11
To provide access only for this server it is enough...
Now to enable this publisher in remote server we need to create publisher in required clients as below. Clients access the repository via HTTP.
As publisher is created with /export/repoSolaris11 directory which is exact location of repo data, only the IP of packaging server is sufficient as url.
root-clntsrv1:/#
root-clntsrv1:/# pkg set-publisher -G ‘*’ -g http://10.20.10.25 solaris
---Here my packaging server's IP is : 10.20.10.25root-clntsrv1:/#
To unset any publisher,
root-clntsrv1:/# pkg unset-publisher <publishername>
##################################################################################
Are you looking to earn money from your traffic by using popunder advertisments?
ReplyDeleteIn case you are, have you tried using Propeller Ads?