How to configure a local repository in Solaris 11.3
This post provides the steps needed to create a local repository that will act as Repository Server for other Solaris 11 hosts. Once completed, clients can use this repository server to get updates over the local network instead of via the internet.
Respository Server
After that we'll see the client host using the Repository Server to get updates over the local network.
- Download the Oracle Solaris 11.3 respository files from Oracle OTN to your staging area
there are 5 parts to download
- http://download.oracle.com/otn/solaris/11_3/sol-11_3-repo_1of5.zip
- http://download.oracle.com/otn/solaris/11_3/sol-11_3-repo_2of5.zip
- http://download.oracle.com/otn/solaris/11_3/sol-11_3-repo_3of5.zip
- http://download.oracle.com/otn/solaris/11_3/sol-11_3-repo_4of5.zip
- http://download.oracle.com/otn/solaris/11_3/sol-11_3-repo_5of5.zip
- (optional) Download the Solaris 11.3 SRU (at the time of writing p22168727_1100_SOLARIS64.zip was available)
- Create the repository area:
# zfs create -o mountpoint=/IPS rpool/IPS # mkdir /IPS/repo
- Unpack the repository files:
# unzip -qq sol-11_3-report_1of5.zip -d /IPS/repo # unzip -qq sol-11_3-report_2of5.zip -d /IPS/repo # unzip -qq sol-11_3-report_3of5.zip -d /IPS/repo # unzip -qq sol-11_3-report_4of5.zip -d /IPS/repo # unzip -qq sol-11_3-report_5of5.zip -d /IPS/repo
- (optional) apply the SRU if downloaded
# unzip -qq p22168727_1100_SOLARIS64.zip # pkgrecv -s publisher/solaris -d /IPS/repo/publisher/solaris '*' # rm -fr publisher/
- Create the repository server:
# svccfg -s application/pkg/server setprop pkg/inst_root=/IPS/repo # svccfg -s application/pkg/server setprop pkg/readonly=true # svcadm refresh application/pkg/server # svcadm enable application/pkg/server # pkg set-publisher -O http://10.1.1.100 solaris
- Update repository server (if needed):
# pkg update --accept entire
Setup repository for Solaris clients
Configure and update the Solaris clients using the HTTP repository server:
# pkg set-publisher -O http://10.1.1.100 solaris # pkg publisher # pkg list -af entire # pkg update --accept entire # beadm list # shutdown -y -g0 —r
Replace 10.1.1.100 with the IP address for your repository server