0% found this document useful (0 votes)
33 views6 pages

Solaris 11 Repo Creation

The document describes how to set up a local Solaris 11.4 IPS repository including downloading base files, creating the repository, and applying incremental updates. It provides steps to download the base files, create the ZFS storage, extract and install the base files, then apply incremental patchset updates by downloading, extracting, and adding them to the repository.

Uploaded by

selvanirmal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views6 pages

Solaris 11 Repo Creation

The document describes how to set up a local Solaris 11.4 IPS repository including downloading base files, creating the repository, and applying incremental updates. It provides steps to download the base files, create the ZFS storage, extract and install the base files, then apply incremental patchset updates by downloading, extracting, and adding them to the repository.

Uploaded by

selvanirmal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

ADLAMTECH

WOR D S OF M Y EXP ER I EN C E, I D EAS AN D C H AL L EN GES ….

H O ME › U N IX › H O W TO S ETU P A S O L ARIS 1 1 . 4 L O C AL RE PO S ITO RY

How to setup a Solaris 11.4


Local repository
BY AN IS HAX on JAN U ARY 1 4, 201 9 • ( 1 )

Introduction
Solaris 11 IPS repository is manadatory for an Organization to keep the Solaris 11
X86 and Sparc servers updated with latest OS patches.

Setting up the repository has two parts:

1. Build the base repo

2. Apply the incremental patchsets

Prerequisites
Create a ZFS file system /repo with suffcient space to host the repository

root@titan:~# zpool list


NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
rpool 63.5G 11.2G 52.3G 17% 1.00x ONLINE -
root@titan:~# zfs create -o mountpoint=/repo -o quota=25G rpool/repo
root@titan:~# df -h /repo
Filesystem Size Used Available Capacity Mounted on
rpool/repo 25G 31K 25G 1% /repo
Download the base repositiry files
Next step is to download the repository files and setup the base repo. And then
apply the incremental updates as and when it released.

You can download the base repo files from below link:

https://www.oracle.com/technetwork/server-
storage/solaris11/downloads/local-repository-2245081.html

You need to download below files.

Copy the files to one of the


Solaris11 X86 or Sparc server
where you wanted to configure the
repo.

Normally i would create a


/var/repository/s11u4 and winscp
the files in to it

root@titan:~# uname -a
SunOS titan 5.11 11.4.0.15.0 i86pc i386 i86pc
root@titan:~#
root@titan:~# mkdir -p /var/repository/s11u4

Winscp the files from your desktop to /var/repository/s11u4 of the repository


server
cd to the /var/repository/s11u4, verify all files are copied

root@titan:/var/repository/s11u4# ls -lrt
total 18817566
-rw-r--r-- 1 root root 1814619737 Jan 11 10:03 sol-11_4-repo_2of5.zip
-rw-r--r-- 1 root root 1968246581 Jan 11 10:13 sol-11_4-repo_1of5.zip
-rw-r--r-- 1 root root 2132702935 Jan 11 10:38 sol-11_4-repo_4of5.zip
-rw-r--r-- 1 root root 1772147401 Jan 11 10:52 sol-11_4-repo_3of5.zip
-rw-r--r-- 1 root root 1939943920 Jan 11 11:01 sol-11_4-repo_5of5.zip
-rw-r--r-- 1 root root 12262 Jan 11 11:13 install-repo.ksh
-rw-r--r-- 1 root root 495 Jan 11 11:13 sol-11_4-repo_digest.txt

Setting up the base the repo


Set execute permissin to script install-repo.ksh

root@titan:/var/repository/s11u4# chmod 755 install-repo.ksh

Note: Ensure file sol-11_4-repo_digest.txt is available in the same directory. This


is mandatory to compare the checksum of zip files.

Install the repository

root@titan:/var/repository/s11u4# ./install-repo.ksh -d /repo


Using sol-11_4-repo download.
Uncompressing sol-11_4-repo_1of5.zip...done.
Uncompressing sol-11_4-repo_2of5.zip...done.
Uncompressing sol-11_4-repo_3of5.zip...done.
Uncompressing sol-11_4-repo_4of5.zip...done.
Uncompressing sol-11_4-repo_5of5.zip...done.
Repository can be found in /repo.

Applying the incremental Updates


Next to step is to apply the incremental patchset update. Oracle will release
incrementals pacthset updates regulary. It can be downloaded
from http://myoraclesupport.com/

Login to myoraclesupport -> and go to Patches and Updates. Search the


incremental update as below under section Patch Search.
Download the latest incremental IPS repository patchset from the search results.

Create a directory /var/repository/s11incr in the repository server

#mkdir /var/repository/s11incr

winscp patchset files to /var/repository/s11incr

Copy the install-repo.ksh file which you have downloded along with base repo
files to /var/repository/s11incr/

root@titan:~# cd /var/repository/s11incr/

root@titan:/var/repository/s11incr# cp -p ../s11u4/install-repo.ksh .
Create digest file sol-11_4-repo_digest.txt for all the zip files

root@titan:/var/repository/s11incr# ls -lrt
total 10083540
-rwxr-xr-x 1 root root 12262 Jan 11 11:13 install-repo.ksh
-rw-r--r-- 1 root root 1564502926 Jan 11 12:34 p28932200_1100_Solaris86-6
-rw-r--r-- 1 root root 1864407149 Jan 11 12:48 p28932200_1100_Solaris86-6
-rw-r--r-- 1 root root 1730048283 Jan 11 12:49 p28932200_1100_Solaris86-6
root@titan:/var/repository/s11incr# digest -v -a sha256 p28932200_1100_So
root@titan:/var/repository/s11incr# digest -v -a sha256 p28932200_1100_So
root@titan:/var/repository/s11incr# digest -v -a sha256 p28932200_1100_So

Install the incremental updates to base repo


root@titan:/var/repository/s11incr# ./install-repo.ksh -d /repo
Using p28932200_1100_Solaris86-64 files for sol-11_4-repo download.
IPS repository exists at destination /repo
Current version: 11.4.0.0.1.15.0
Do you want to add to this repository? (y/n)[n]: y
Uncompressing p28932200_1100_Solaris86-64_1of3.zip...done.
Uncompressing p28932200_1100_Solaris86-64_2of3.zip...done.
Uncompressing p28932200_1100_Solaris86-64_3of3.zip...done.
Repository can be found in /repo.
Initiating repository rebuild.

Publish the repo locally


root@titan:/var/repository/s11incr# pkg set-publisher -G '*' -M '*' -g /r
root@titan:/var/repository/s11incr# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F file:///repo/

Update the OS to latest patchset


root@titan:/var/repository/s11incr#pkg update --license --accept

Packages to install: 35
Packages to update: 317
Mediators to change: 1
Create boot environment: Yes
Create backup boot environment: No

DOWNLOAD PKGS FILES XFER (MB) SPEED


Completed 352/352 15216/15216 277.7/277.7 --

PHASE ITEMS
Removing old actions 7847/7847
Installing new actions 13592/13592
Updating modified actions 4613/4613
Updating package state database Done
Updating package cache 317/317
Updating image state Done
Creating fast lookup database Done
Updating package cache 1/1

A clone of solaris exists and has been updated and activated.


On the next boot the Boot Environment be://rpool/solaris-1 will be
mounted on '/'. Reboot when ready to switch to this updated BE.

Updating package cache 1/1

1 reply

Trackbacks

1. Publish Solaris 11 IPS repository using HTTP service – ADLAMTECH

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy