How to create local repository server
Create zfs filesystem
zpool create -f newpool c8t0d0s1 c8t0d0s2
zfs set canmount=off newpool
zfs create newpool/repo
Create local repostory
svccfg -s application/pkg/server setprop pkg/inst_root=/newpool/repo/repo
svccfg -s application/pkg/server setprop pkg/readonly=true
svcadm refresh application/pkg/server
svcadm enable application/pkg/server
svccfg -s application/pkg/server setprop pkg/port=10000
svcadm refresh application/pkg/server
pkg set-publisher -G "*" -g /newpool/repo/repo solaris
On client side
root@test2:~# pkg set-publisher -G "*" -g http://10.66.10.156:10000 solaris
root@test2:~# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://10.66.10.156:10000/
Update your local repository
Make sure your repository server is running the same or a newer version of the Oracle Solaris 11 OS as the version for which the packages you plan to copy are built. For example, if the server is running Oracle Solaris 11 and you want to update your repository to the Oracle Solaris 11 Update 1 repository, update the server to Oracle Solaris 11 Update 1 before you update your repository.
Whether you used the pkgrecv command or .iso files to create your local IPS package repository
root@test2:~# pkgrecv -s http://pkg.oracle.com/solaris/release/ -d /newpool/repo/repo '*'
root@test2:~# pkgrepo -s /newpool/repo/repo refresh
No comments:
Post a Comment