First you must download the repository package from oracle.com.
Create the zfs file system :
root@solaris1:# zfs create rpool/export/IPS
Check our new zfs :
root@solaris1:# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 38.2G 875G 39K /rpool
rpool/ROOT 1.85G 875G 31K legacy
rpool/ROOT/solaris 1.85G 875G 1.57G /
rpool/ROOT/solaris/var 275M 875G 113M /var
rpool/dump 8.25G 876G 8.00G –
rpool/export 26.1G 875G 33K /export
rpool/export/IPS 13.1G 875G 13.1G /export/IPS
rpool/export/home 12.9G 875G 32K /export/home
rpool/export/home/oracle 12.9G 875G 12.9G /export/home/oracle
rpool/swap 2.06G 875G 2.00G –
Once you get the repo file, you must join the repo files :
root@solaris1:# cat sol-11-1111-repo-full.iso-a sol-11-1111-repo-full.iso-b > sol-11-1111-repo-full.iso
root@solaris1:# ls /export/IPS
sol-11-1111-repo-full.iso
Mount the iso file as filesystem
root@solaris1:# lofiadm -a sol-11-1111-repo-full.iso
root@solaris1:# mount -F hsfs /dev/lofi/1 /mnt
root@solaris1:# rsync -aP /mnt/repo /export/IPS/repo
Make sure you have /export/IPS/repo after rsync!
Set the port and repo location :
root@solaris1:# svccfg -s application/pkg/server setprop pkg/inst_root=/export/IPS/repo
root@solaris1:# svccfg -v -s application/pkg/server setprop pkg/port=9999
root@solaris1:# svccfg -s application/pkg/server setprop pkg/readonly=true
root@solaris1:# svcprop -p pkg/inst_root application/pkg/server
Make sure the config :
root@solaris1:# svccfg -s /application/pkg/server listprop | grep ‘\(port\)’
pkg/inst_root astring /export/IPS/repo
pkg/port count 9999
Enable the package server service :
root@solaris1:# svcadm refresh application/pkg/server
root@solaris1:# svcadm enable application/pkg/server
Check if its online :
root@solaris1:# svcs application/pkg/server
STATE STIME FMRI
online 10:12:24 svc:/application/pkg/server:default
Refresh the Repo List :
root@solaris1:# pkgrepo refresh -s /export/IPS/repo
Try to access the repo over the browser http://192.168.10.241:9999/en/index.shtml
Check the repository :
root@solaris1:# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online http://pkg.oracle.com/solaris/release
Now we must set the repository link, to local repository :
root@solaris1:# pkg set-publisher -g http://192.168.10.241:9999 -G http://pkg.oracle.com/solaris/release/ solaris
Check if its updated :
root@solaris1:# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online http://192.168.10.241:9999/
Rebuild the repository Index file :
root@solaris1:# pkg rebuild-index
PHASE ITEMS
Indexing Packages 462/462
Try to use repo on command line :
root@solaris1:# pkg install firefox
Packages to install: 15
Create boot environment: No
Services to restart: 3
DOWNLOAD PKGS FILES XFER (MB)
Completed 15/15 5628/5628 34.2/34.2PHASE ACTIONS
Install Phase 6514/6514PHASE ITEMS
Package State Update Phase 15/15
Image State Update Phase 2/2
Done!
You must be logged in to post a comment.