This document describe the procedure to create the local IPS repo on Oracle Solaris 11.3 on virtual box.
By default Solaris have configure with default repo. if we do not have access to the internet to update the required packages we need to create local repo at server level.
To setup the local repo, we need to download the Oracle's hosted repositories from the Oracle Technology Network.
Accept the OTN agreement license and download the available repositories.
I have already downloaded the repo's and i already created the ISO file to merge them. so i will skip that steps.
Select the machine and goto the storage tab and select he ISO file.
Check the ISO under /media dir.
root@oracle123:~# ls -l /media/
total 4
dr-xr-xr-x 3 root root 2048 Mar 3 00:19 SOL-11_3_REPO
Check the current publisher.
root@oracle123:~# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://pkg.oracle.com/solaris/release/
Set new publisher. path will be same under /media directory.
root@oracle123:~# pkg set-publisher -G '*' -g file:///media/SOL-11_3_REPO/repo/ solaris
Make sure system repository service pointing to the local repo.
root@oracle123:~# svccfg -s application/pkg/server setprop pkg/inst_root=/media/SOL-11_3_REPO/repo
Verify local pointing repo.
root@oracle123:~# svcprop -p pkg/inst_root application/pkg/server
/media/SOL-11_3_REPO/repo
Reload the repo service.
root@oracle123:~# svcadm refresh application/pkg/server
Check again if its new publisher.
root@oracle123:~# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F file:///media/SOL-11_3_REPO/repo/
Try to install the packages.
root@oracle123:~# pkg install SUNWhea
Packages to install: 1
Create boot environment: No
Create backup boot environment: No
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 1/1 1640/1640 3.3/3.3 0B/s
PHASE ITEMS
Installing new actions 1757/1757
Updating package state database Done
Updating package cache 0/0
Updating image state Done
Creating fast lookup database Done
Updating package cache 1/1
Check all available updates.
root@oracle123:~# pkg update
No updates available for this image.
We have successfully created the local IPS repository on virtual box and updated packages.
Thanks.
By default Solaris have configure with default repo. if we do not have access to the internet to update the required packages we need to create local repo at server level.
To setup the local repo, we need to download the Oracle's hosted repositories from the Oracle Technology Network.
Accept the OTN agreement license and download the available repositories.
I have already downloaded the repo's and i already created the ISO file to merge them. so i will skip that steps.
Select the machine and goto the storage tab and select he ISO file.
root@oracle123:~# ls -l /media/
total 4
dr-xr-xr-x 3 root root 2048 Mar 3 00:19 SOL-11_3_REPO
Check the current publisher.
root@oracle123:~# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://pkg.oracle.com/solaris/release/
Set new publisher. path will be same under /media directory.
root@oracle123:~# pkg set-publisher -G '*' -g file:///media/SOL-11_3_REPO/repo/ solaris
Make sure system repository service pointing to the local repo.
root@oracle123:~# svccfg -s application/pkg/server setprop pkg/inst_root=/media/SOL-11_3_REPO/repo
Verify local pointing repo.
root@oracle123:~# svcprop -p pkg/inst_root application/pkg/server
/media/SOL-11_3_REPO/repo
Reload the repo service.
root@oracle123:~# svcadm refresh application/pkg/server
Check again if its new publisher.
root@oracle123:~# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F file:///media/SOL-11_3_REPO/repo/
Try to install the packages.
root@oracle123:~# pkg install SUNWhea
Packages to install: 1
Create boot environment: No
Create backup boot environment: No
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 1/1 1640/1640 3.3/3.3 0B/s
PHASE ITEMS
Installing new actions 1757/1757
Updating package state database Done
Updating package cache 0/0
Updating image state Done
Creating fast lookup database Done
Updating package cache 1/1
Check all available updates.
root@oracle123:~# pkg update
No updates available for this image.
We have successfully created the local IPS repository on virtual box and updated packages.
Thanks.
No comments:
Post a Comment