Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to Minimize the Size of Your Oracle Solaris IPS Package Repository

Joost PronkvH-OracleAug 21 2015 — edited Jul 25 2018

How to Minimize the Size of Your Oracle Solaris IPS Package Repository

by Alta Elstad

This article describes the minimal recommended local Image Packaging System (IPS) package repository for Oracle Solaris operating system packages.

Table of Contents
How to Minimize Your Local Repository
How to Replace the Current Repository with the New Repository
How Not to Minimize Your Local Repository
See Also
About the Author

How to Minimize Your Local Repository

The most complete package repository you can create for the Oracle Solaris OS is to copy the Oracle Solaris support repository. The support repository fully supports all versions of Oracle Solaris since Oracle Solaris 11 11/11 and is commensurately large. If you no longer need to support older OS versions and you want to reduce the size of your local repository, performing the following steps will give you the smallest recommended repository for Oracle Solaris OS packages:

  1. Create a new repository that is installed using the repository files for the most recent Oracle Solaris release. These repository files can be downloaded from the Downloads tab on the Oracle Technology Network Oracle Solaris release website, from the Oracle Software Delivery Cloud, or from My Oracle Support.
  2. Add each Support Repository Update (SRU) for the release to the release repository by using the SRU repository files downloaded from My Oracle Support.

Then, when a new release of Oracle Solaris is available, create a new repository using the new repository files. To minimize disruption to clients, replace the current repository with the new repository, as described in "How to Replace the Current Repository with the New Repository." However, do not replace the current repository until you no longer need to install or update systems to a release level that is older than the release level of the new repository. The new repository supports installing new systems at the new release level and updating older systems to the new release level. The new repository does not support installing or updating systems to an older release level. See Table 1 below.

For example, if you create an Oracle Solaris 11.4 package repository from repository files, you can use this new repository to update Oracle Solaris 11.3 systems to Oracle Solaris 11.4 and to update Oracle Solaris 11.2 systems to Oracle Solaris 11.4. However, you cannot use this new Oracle Solaris 11.4 repository to update an Oracle Solaris 11.2 system to Oracle Solaris 11.3. If you create an Oracle Solaris 11.4 package repository from repository files and then add SRU2 but not SRU1, you can install or update to Oracle Solaris 11.4 and Oracle Solaris 11.4 SRU2 but not to Oracle Solaris 11.4 SRU1.

If you replace old repositories and then find that you need to install or update to an older Oracle Solaris release, you can re-create the older repository from the repository files that you saved or from older repository files downloaded from My Oracle Support, or you can install or update from the Oracle Solaris support repository.

The Oracle Solaris support repository contains all packages that Oracle published for all Oracle Solaris 11 releases. The Oracle Solaris support repository can be used to update or install a system to any Oracle Solaris 11 release level, including to any SRU level. However, a local repository created by using the Oracle Solaris support repository as the source will be many times the size of a repository created by using the repository files for a single Oracle Solaris update.

Note that the repository files for each release contain some packages from previous releases. Attempting to reduce the size of your repository by including only packages of a particular version will not result in a usable repository, due to the following:

  • Some older packages are required to support updating from older releases to the new release.
  • Some older packages are still the most current packages in the new release; they have not changed since the older release.

Table 1.  Comparing Repository Files and the Support Repository

| Source of Repository Content | Installed Repository Size | Operations Available |
| Repository files for one release. | ~9 GB | – Update from an older release to this release.
– Install this release. |
| Repository files for one SRU.

Add this content to the repository created from the associated release repository files described above. | ~2 GB | – Update from an older release to this release.
– Update from an older version to this SRU.
– Install this release.
– Install this release plus this SRU. |
| Oracle Solaris support repository. | >130 GB | – Update to any release or SRU.
– Install any release plus any SRU. |

How to Replace the Current Repository with the New Repository

Use the following steps to minimize disruption to clients. With this procedure, the update takes place out of sight, the actual replacement is fast, and clients do not need to change their solaris publisher origin or add a new origin.

  1. (Optional) Copy the current repository to other storage where space is not a problem. If you skip this step, you can rely on repository files that you saved or older repository files downloaded from My Oracle Support, or you can install or update clients from the Oracle Solaris support repository.

  2. Create a snapshot of the current repository.

    Note: If you are going to keep the snapshot, use the version number of the newest version of entire in the repository, instead of just using old.

    # zfs snapshot rpool/export/repos/solaris@old
    
  3. Clone the snapshot.

    # zfs clone rpool/export/repos/solaris@old rpool/export/repos/solaris_new
    
  4. Delete the solaris repository content from the clone. Do not delete all content from the clone; delete only the content under the publisher/solaris directory.

    # rm -rf /export/repos/solaris_new/publisher/solaris/*
    
  5. Use the new repository files to repopulate the clone according to the instructions for those repository files.

  6. Replace the current working repository with the new repository.

    # svcadm disable -st pkg/server:default# zfs promote rpool/export/repos/solaris_new# zfs rename rpool/export/repos/solaris rpool/export/repos/solaris_old# zfs rename rpool/export/repos/solaris_new rpool/export/repos/solaris
    
  7. Verify the new repository, update the catalog, restart the pkg/server service, and destroy the old repository. Optionally, destroy the snapshot.

    # pkgrepo verify -s /export/repos/solaris# pkgrepo refresh -s /export/repos/solaris# svcadm restart pkg/server:default# zfs destroy rpool/export/repos/solaris_old
    

How Not to Minimize Your Local Repository

You cannot successfully minimize your repository by pruning a larger repository.

  • Do not delete from a repository packages that were delivered by Oracle.
  • Do not create a repository by installing just a subset of packages. When you use pkgrecv, specify '*' for the _fmri_ argument. Later releases require some packages from earlier releases, and some packages that you need might use a different version numbering system.

See Also

The following resources have more information and best practices about IPS package repositories:

About the Author

Alta Elstad is a technical writer supporting Oracle Solaris 11 packaging.

| Revision 1.1, 07/25/2018 |
| Revision 1.0, 09/09/2015 |

Follow us:
Blog | Facebook | Twitter | YouTube

Comments

3411931

Hello,

If i want to mirroring your Oracle Linux, how i can do to become ?

Avi Miller-Oracle

Hello,

If i want to mirroring your Oracle Linux, how i can do to become ?

Edited to state that we are no longer adding mirror locations as the ISOs are now available via Akamai CDN.

3411931

You can send me a message and we can discuss it directly. We're only looking for new mirrors in locations we don't already have a mirror, so I'll need to know where your mirror will be based.

We are in Viet Nam. Can you tell me how much disk space it require to become your mirror ? Thanks you.

Avi Miller-Oracle

We are in Viet Nam. Can you tell me how much disk space it require to become your mirror ? Thanks you.

Currently, it requires about 500GB.

Shafqatktk01

Hi, I am interested to provide you mirror in Pakistan

Can you tell me what kind of system you need please mention your specification which is required for mirroring?

Avi Miller-Oracle

Hi, I am interested to provide you mirror in Pakistan

Can you tell me what kind of system you need please mention your specification which is required for mirroring?

Hi, we are not looking for additional mirrors at this time. Thanks for your interest, though!

CONCEPT21

"Oracle Software Delivery Cloud" does not work any more. It shows an empty page after I have logged in.  Please correct it. https://edelivery.oracle.com/osdc/faces/Home.jspx

Andris Perkons-Oracle

"Oracle Software Delivery Cloud" does not work any more. It shows an empty page after I have logged in.  Please correct it. https://edelivery.oracle.com/osdc/faces/Home.jspx

No problems here.

Andris

Avi Miller-Oracle

"Oracle Software Delivery Cloud" does not work any more. It shows an empty page after I have logged in.  Please correct it. https://edelivery.oracle.com/osdc/faces/Home.jspx

Works fine for me. The FAQ and contact details for the OSDC team are here: https://edelivery.oracle.com/osdc/faces/Faq.jspx#contactUs

Alex_D-Oracle

"Oracle Software Delivery Cloud" does not work any more. It shows an empty page after I have logged in.  Please correct it. https://edelivery.oracle.com/osdc/faces/Home.jspx

Connecting from Romania today, it's also working for me.

Dude!

"Oracle Software Delivery Cloud" does not work any more. It shows an empty page after I have logged in.  Please correct it. https://edelivery.oracle.com/osdc/faces/Home.jspx

withdrawn.

Dennis Wolff

Many thanks for this information.

My question: Is there also a list of ISO checksums (md5/sha) somewhere available?

Dude!

Many thanks for this information.

My question: Is there also a list of ISO checksums (md5/sha) somewhere available?

I checked some of the URLs and SHA-1/256 info is there as in the example below.

Except for OL 7.7 which appears missing.

What are you trying to download?

pastedImage_0.png

Dennis Wolff

I checked some of the URLs and SHA-1/256 info is there as in the example below.

Except for OL 7.7 which appears missing.

What are you trying to download?

pastedImage_0.png

I was downloading OL7.7 of course, but honestly not checking the other ISOs. But anyway ... thanks for your help.

Dude!

I was downloading OL7.7 of course, but honestly not checking the other ISOs. But anyway ... thanks for your help.

Below are the checksums for the OL 7.7 download from the Oracle Delivery Cloud. Chances are they apply.

Btw, you only need to download 339-01.iso which is bootable and contains the installation software.

pastedImage_0.png

Dennis Wolff

Below are the checksums for the OL 7.7 download from the Oracle Delivery Cloud. Chances are they apply.

Btw, you only need to download 339-01.iso which is bootable and contains the installation software.

pastedImage_0.png

Many thanks once more. Checksum was matching with my download from a public mirror.

Avi Miller-Oracle

I was downloading OL7.7 of course, but honestly not checking the other ISOs. But anyway ... thanks for your help.

I'll check to see why the checksum files are not up on the mirrors.

caf065b8-d16b-4851-997f-0fe6d640c089

um... i want to know, how many size is the oracle linux repo?

ladar

The v7 u9 and the v8 u3 ISOs don't appear to be on any of the mirror sites. My guess is they were never pushed to the server the various mirrors rsync with. Can anyone fix this? The official download server is soooo slow. Thanks.

ladar

Correction. The official download site is slow over HTTPS but reasonably fast over HTTP. It's a difference of 15 megabits vs 500 megabits.
I tested that via a gigabit link, and via a 10 gigabit link from different location and got the same result.

Sergio-Oracle

@ladar we will take a look. have you tried this location?
https://yum.oracle.com/oracle-linux-isos.html

ladar

@sergio-oracle1 yes, that is official download site I mentioned above, which is incredibly slow via HTTPS, but reasonably fast via HTTP.

Sergio-Oracle

@ladar Looks like the 7.9 and 8.3 ISOs propagated to the various mirrors now.

ladar

@sergio-oracle1 thanks for the update. I see the 7u9 ISO on my favorite mirror, but I still don't see the 8u3 ISO. I'll update my build scripts for v7, and check again in a day or so regarding v8.

User_LJZDY

Hello. Looks like HEAnet mirror does not contain oracle linux isos.

Sergio-Oracle

They used to mirror OL. I recommend you write them and suggest they add it back.
In addition to HTTP, we also serve FTP and rsync. If there's anything you think could benefit from being mirrored on ftp.heanet.ie, which has 10 Gigabit connectivity to the backbone in our National Network, please mail mirrors@heanet.ie

ladar

@Sergio-Oracle can you reach out to me? I'm setting up a public mirror server, and would like to add the Oracle Linux ISOs, and Yum repos.
It seems I don't have a good enough reputation on this platform to send you a private message, and I don't know your email address.
Thanks.

Sergio-Oracle

@ladar I've sent you a PM. Let me know if that didn't work.

User_3WO3S

I want to make a mirror out of Turkey. I'm waiting for your help. I contacted.

1 - 29

Post Details

Added on Aug 21 2015
0 comments
11,417 views