First of all download all the repo files required to create an offline repository.
To Download the files use the link: Visit Here
1. Extract all the repofiles to local disk or
load all repo files on desired server to be configured as IPS Repository for network.
change permissions on install-repo.ksh to execute
chmod u+x install-repo.ksh or
chmod 700 install-repo.ksh
insatll-repo.ksh -d /LocalRepo -s /path-to-repo-files -i sol11-3
2. Create a local pool for holding the images
zfs create rpool/LocalRepo
zfs set mountpoint=/localrepo rpool/LocalRepo
3. Copy the extracted files to the /LocalRepo
4. Set the properties of pkg server to access local repository
svccfg -s application/pkg/server setprop pkg/inst_root=/LocalRepo
svccfg -s application/pkg/server setprop pkg/readonly=true
svcadm enable application/pkg/server
5. Set the publisher to be the local machine
pkg set-publisher -g /LocalRepo solaris
6. verify it by running
pkg publisher
7. For publishing this repository over network
svccfg -s application/pkg/server setprop pkg/port=8080
pkg set-publisher -g http://server-name:8080/ solaris
[We can use any port in the range 1024-65535]
Comments
Post a Comment