Solaris Repo Creation - Document 1928542
Solaris Repo Creation - Document 1928542
Solaris Repo Creation - Document 1928542
PowerView is On Support Identifier: Not 18971958 (Emirates... SYSTEM (Available) (87) Contact Us Help
Give Feedback...
Copyright (c) 2018, Oracle. All rights reserved. Oracle Confidential.
How to Create and Update a Solaris 11 Local Repository Server (Doc ID 1928542.1) To Bottom
Goal
Document Details
Solution
Basic info: Where to find S11 update images Type:
HOWTO
Simple Procedure to Create a Local Repository from ZIP files Status:
PUBLISHED
Last Major
Set up a depot server to enable other systems allow update via HTTP Oct 25, 2018
Update:
Oct 25, 2018
Installing a local repository from pkg.oracle.com Last Update:
Document References
APPLIES TO: Oracle Solaris 11 Support
Repository Updates (SRU)
Index [1372094.1]
Solaris Operating System - Version 11.2 and later
Information in this document applies to any platform. Oracle Solaris 11.3 Support
Repository Updates (SRU)
Index [2045311.1]
GOAL
Oracle Solaris 11.2 Support
Repository Updates (SRU)
This document provides information about the new script install-repo.ksh and shows the differences to earlier Solaris 11 Index [1672221.1]
releases
Oracle Solaris 11.2.2.5.0
Support Repository Update
Note: (Oracle Solaris 11.2 SRU2.5.0)
the version of the install-repo.ksh changed from Solaris 11.3 SRU 16 on. README [1925904.1]
The install-repo.ksh versions are not upward/downward compatible. Oracle Solaris 11.1 Support
It is recommended to download the correct version if install-repo.ksh from patch labelled "Installation Guide" near the Repository Updates (SRU)
Repository patch in table of MOS document Index [1501435.1]
Oracle Solaris 11.3 Support Repository Updates (SRU) Index Document 2045311.1 Show More
Recently Viewed
Where to download Oracle Solaris ISO images and Update Releases Document 1277964.1 ORA-15018 ORA-15031
Creating New ASM Diskgroup
URL to download to Solaris 11.3 GA: In Exadata [2299466.1]
http://www.oracle.com/technetwork/server-storage/solaris11/downloads/local-repository-2245081.html Disk Is not Discovered in
ASM, Diskgroup Creation
Fails with Ora-15018
Ora-15031 Ora-15014
[431013.1]
Show More
http://www.oracle.com/technetwork/server-storage/solaris11/documentation/solaris-11-cheat-sheet-1556378.pdf
1 of 7 11/1/2018, 2:01 PM
Document 1928542.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=44...
Prepare a ZFS dataset for the repository and for the repo*.zip files
# ls -l
total 16482295
-rwxr-xr-x 1 root root 11612 May 20 05:35 install-repo.ksh
-rw-r----- 1 root root 1540097274 May 20 05:36 sol-11_3-repo_1of5.zip
-rw-r----- 1 root root 1730669364 May 20 05:36 sol-11_3-repo_2of5.zip
-rw-r----- 1 root root 1717187368 May 20 05:37 sol-11_3-repo_3of5.zip
-rw-r----- 1 root root 1871913207 May 20 05:38 sol-11_3-repo_4of5.zip
-rw-r----- 1 root root 1570373423 May 20 05:38 sol-11_3-repo_5of5.zip
-rw-r--r-- 1 root root 285 May 20 05:38 sol-11_3-repo_md5sums.txt
# ./install-repo.ksh -d /export/repoSolaris11/
Using sol-11_3-repo download.
Uncompressing sol-11_3-repo_1of5.zip...done.
Uncompressing sol-11_3-repo_2of5.zip...done.
Uncompressing sol-11_3-repo_3of5.zip...done.
Uncompressing sol-11_3-repo_4of5.zip...done.
Uncompressing sol-11_3-repo_5of5.zip...done.
Repository can be found in /export/repoSolaris11/
The patches for the SRU's can be found in the tables in the following documents (see column 'IPS Repository')
Oracle Solaris 11.2 Support Repository Updates (SRU) Index Document 1672221.1
Oracle Solaris 11.3 Support Repository Updates (SRU) Index Document 2045311.1
# cd /export/iso/SRU6
# unzip p22835670_1100_SOLARIS64.zip
# ls -l
-rwxr-xr-x 1 root root 11612 Mar 10 17:59 install-repo.ksh
-rw-r----- 1 root root 1861775294 May 20 06:26 p22835668_1100_SOLARIS64_1of2.zip
-rw-r----- 1 root root 1435669221 May 20 06:27 p22835668_1100_SOLARIS64_2of2.zip
-rw-r--r-- 1 root root 136 Mar 10 18:06 sol-11_3_6_5_0-incr-repo_md5sums.txt
-- lines omitted --
# ./install-repo.ksh -d /export/repoSolaris11/
Using p22835668_1100_SOLARIS64 files for sol-11_3_6_5_0-incr-repo download.
IPS repository exists at destination /export/repoSolaris11/
Current version: 0.175.3.7.0.5.0
Do you want to add to this repository? (y/n)[n]: y
Uncompressing p22835668_1100_SOLARIS64_1of2.zip...done.
Uncompressing p22835668_1100_SOLARIS64_2of2.zip...done.
Repository can be found in /export/repoSolaris11/.
Initiating repository rebuild.
Set up a depot server to enable other systems allow update via HTTP
The port was selected here for '8081' in order to leave the standard http port '80' open for other apache services on system
In case the http port '80' is not required for other services then you might use standard port '80'
Please bear in mind that you need to define the port number for any port number <> '80' when accessing the depot server.
e.g. # pkg set-publisher -g http://pkgserver:8081/ solaris
2 of 7 11/1/2018, 2:01 PM
Document 1928542.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=44...
When installing a local repository from pkg.oracle.com please bear in mind that the default value for the option '-m' changed between Solaris 11.1
and Solaris 11.2
Note: A local repository with all timestamps takes approximately 130 GB in size ( sol 11.0 FCS -> sol 11.3 SRU 19 )
The same amount is required for the cache which resides in /var/tmp/pkgrecv-xyzxyz by default
In case the system does not have enough enough free space ( 130 GB ++ ) in /var/tmp for the cache, you need to define a certain cache-dir
on a volume with enough free space. e.g.
# pkgrecv ..some_options.. -c /data1/export/cache/ -m all-timestamps '*'
Default behaviour ( if the -m option is not specified) for Solaris S11.1 and Solaris S11.2
So, in case you want to have only 'latest' timestamps, you might consider to use -m latest '*' for pkgrecv command for all Solaris 11 versions
Solaris 11.2 provides a script install-repo.ksh to build/update a local repository. This script is included in the "Installation Guide" downloads in the
"IPS Repository" column of the
Oracle Solaris 11.2 Support Repository Updates (SRU) Index Document 1672221.1
install-repo.ksh
readme-11_2_XX_X_X.html
readme-11_2_XX_X_X.txt
README-zipped-repo.txt
sol-11_2_XX_X_X-incr-repo_md5sums.txt
The script install-repo.ksh needs to be in the same directory as the 11.2 GA or the SRU zip files along with the sol*-md5sums.txt ( i.e. sol-11_2_1_5_0-
incr-repo-md5sums.txt ) file.
The script looks for existing *.zip files in the directory and checks it's md5 checksum against the sol*-repo-md5sums.txt in the same directory.
If this test has been passed, it will unzip the *.zip files in the given local repository
3 of 7 11/1/2018, 2:01 PM
Document 1928542.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=44...
USAGE: install-repo.ksh -d dest [-s zipsrc] [-i image-name] [-c] [-v] [-I]
Example:
# cd /space/zipped-repo_GA/
# ls -l
-rw-r--r-- 1 root root 3160 Jan 18 2015 README-zipped-repo.txt
-rwxr-xr-x 1 root root 5594 Dec 22 2014 install-repo.ksh
-rw-r--r-- 1 root root 1771800121 Jan 18 2015 sol-11_2-repo-1of4.zip
-rw-r--r-- 1 root root 1889867782 Jan 18 2015 sol-11_2-repo-2of4.zip
-rw-r--r-- 1 root root 1902167161 Jan 18 2015 sol-11_2-repo-3of4.zip
-rw-r--r-- 1 root root 1790358735 Jan 18 2015 sol-11_2-repo-4of4.zip
-rw-r--r-- 1 root root 228 Jan 18 2015 sol-11_2-repo-md5sums.txt
Uncompressing sol-11_2-repo-1of4.zip...done.
Uncompressing sol-11_2-repo-2of4.zip...done.
Uncompressing sol-11_2-repo-3of4.zip...done.
Uncompressing sol-11_2-repo-4of4.zip...done.
Repository can be found in /export/sol11.2.
Initiating repository verification.
Building ISO image...done.
ISO image and instructions for using the ISO image are at:
/space/zipped-repo_GA/sol-11_2-repo.iso
/space/zipped-repo_GA/README-repo-iso.txt
# cd /space/zipped-repo_sol-11_2_13_6
# ls -l
-rw-r--r-- 1 root root 4031 Aug 11 04:47 README-zipped-repo.txt
-rwxr-xr-x 1 root root 11612 Aug 11 04:47 install-repo.ksh
-rw-r--r-- 1 root root 6549 Aug 11 04:47 sol-11_2_13_6_0-incr-install_guide.zip
-rw-r--r-- 1 root root 1323586748 Aug 11 04:56 sol-11_2_13_6_0-incr-repo_1of3.zip
-rw-r--r-- 1 root root 1372479560 Aug 11 05:02 sol-11_2_13_6_0-incr-repo_2of3.zip
-rw-r--r-- 1 root root 1207557708 Aug 11 05:08 sol-11_2_13_6_0-incr-repo_3of3.zip
-rw-r--r-- 1 root root 207 Aug 11 05:08 sol-11_2_13_6_0-incr-repo_md5sums.txt
# ./install-repo.ksh -d /export/sol11.2 -v -c
Using sol-11_2_13_6_0-incr-repo download.
IPS repository exists at destination /export/sol11.2
Current version: 0.175.2.0.0.42.0
Do you want to add to this repository? (y/n)[n]: y
Uncompressing sol-11_2_13_6_0-incr-repo_1of3.zip...done.
Uncompressing sol-11_2_13_6_0-incr-repo_2of3.zip...done.
Uncompressing sol-11_2_13_6_0-incr-repo_3of3.zip...done.
Repository can be found in /export/sol11.2.
Initiating repository rebuild.
Initiating repository verification.
Building ISO image...done.
ISO image can be found at:
/space/zipped-repo_sol-11_2_13_6/sol-11_2_13_6_0-incr-repo.iso
Instructions for using the ISO image can be found at:
/export/sol11.2/README-repo-iso.txt
For more information please see How to Update an Oracle Solaris 11.2 Package Repository (Doc ID 1925904.1)
4 of 7 11/1/2018, 2:01 PM
Document 1928542.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=44...
To set up the repository, follow the instructions in the README by downloading the assembly script, MD5 checksums and 4 repository parts.
The repository will contain both SPARC and x86 packages.
The install-repo.ksh script is available along with four zip archives of Solaris 11.2 plus a checksum file sol-11_2_1_5_0-incr-repo-md5sums.txt
All of these files need to be downloaded into a specific directory
If not already present, then you can create a new local repository using this
Please bear in mind that you need Solaris 11.2 GA in your repository first. SRUs are incremental.
Oracle Solaris 11.2.2.5.0 Support Repository Update (Oracle Solaris 11.2 SRU2.5.0) README (Doc ID 1925904.1)
This SRU is provided in two parts: Oracle Solaris IPS Repository Installation Guide and Oracle Solaris IPS Repository.
The Oracle Solaris IPS Repository Installation Guide contains the install script and readme files.
The Oracle Solaris IPS Repository contains the zip files of the repository.
You must download both the parts from MOS to add the packages to an existing repository.
The zip file associated with this README must be used in conjunction with an existing local copy of the Oracle Solaris support repository.
It is necessary to have a valid solaris publisher set before performing an update. For instructions to create an
Oracle Solaris 11.2 package repository, see Copying and Creating Oracle Solaris 11.2 Package Repositories.
Some important points to consider before applying or installing the repository zip file:
* The minimum OS level required for the system to run this repository is Oracle Solaris 11.1.
* The repository is provided as zip files. They contain only the latest revision of IPS packages that have been added or changed since the initial release
of Oracle Solaris 11.2.
* This SRU is provided in two parts: Oracle Solaris IPS Repository Installation Guide and Oracle Solaris IPS Repository. The Oracle Solaris IPS
Repository Installation Guide contains the install
script and readme files. The Oracle Solaris IPS Repository contains the zip files of the repository. You must download both the parts
from MOS <https://support.oracle.com/rs?type=doc&id=1672221.1> to add the packages to an existing repository.
* The zip file associated with this README must be used in conjunction with an existing local copy of the Oracle Solaris support repository.
* It is necessary to have a valid |solaris| publisher set before performing an update. For instructions to create an Oracle Solaris 11.2 package
repository, see Copying and Creating Oracle Solaris 11.2 Package Repositories
<http://docs.oracle.com/cd/E36784_01/html/E36805/index.html>.
The example commands listed in this section should be executed with |root| privileges or by using |sudo|(1M) or |pfexec|(1) commands.
Download the SRU's IPS Repository Installation Guide and IPS Repository patches from MOS.
Perform the following steps to update an existing Oracle Solaris 11.2 package repository with the contents of the SRU zip file.
1. Become an administrator.
For more information, see How to Use Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2
<http://docs.oracle.com/cd/E36784_01/html/E37123/rbactask-28.html#OSSUPrbactask-28>.
2. Run the |install-repo.ksh| script that is included in the IPS Repository Installation Guide patch to update your existing repository.
$ install-repo.ksh [-c] [-v] -d full_path_to_existing_s11_2_repo
For example:
$ install-repo.ksh -c -v -d /export/support-repo
For more information about using the |install-repo.ksh| script, see the |README-zipped-repo.txt| file.
For more information about managing your repository, see the following resources:
5 of 7 11/1/2018, 2:01 PM
Document 1928542.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=44...
Perform the following steps to update your local system by using the SRU zip file.
1. Become an administrator.
For more information, see How to Use Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2
<http://docs.oracle.com/cd/E36784_01/html/E37123/rbactask-28.html#OSSUPrbactask-28>.
2. Run the |install-repo.ksh| script that is included in the IPS Repository Installation Guide patch to update your existing repository.
$ install-repo.ksh [-c] [-v] -d full_path_to_existing_s11_2_repo
For example:
$ install-repo.ksh -c -v -d /export/support-repo
For more information about using the install-repo.ksh script, see the |README-zipped-repo.txt| file.
# LC_ALL=C
# export LC_ALL
# ./install-repo.ksh [ .. options .. ]
Note: ensure you set locale to 'C' before starting the install-repo.ksh script
REFERENCES
Related
Products
Sun Microsystems > Operating Systems > Solaris Operating System > Solaris Operating System
Sun Microsystems > Operating Systems > Solaris Operating System > Solaris Operating System > Install and Upgrade > Other
6 of 7 11/1/2018, 2:01 PM
Document 1928542.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=44...
Keywords
ADMINISTRATOR; INCREMENTAL; INSTALL; IPS; ISO; LOCAL REPOSITORY; PATCH; PUBLISHER; REPOSITORY; SOLARIS; SOLARIS11 CONFIGURE; SOLARIS11 UPDATE; UPDATE
Back to Top
Copyright (c) 2018, Oracle. All rights reserved. Legal Notices and Terms of Use Privacy Statement
7 of 7 11/1/2018, 2:01 PM