How to Upgrade an Oracle Solaris 11 Repository with 11.1 Packages

These instructions assume you already have a local Oracle Solaris 11 11/11 IPS package repository, and you want to update that local repository by adding Oracle Solaris 11.1 packages.

You can either use the pkgrecv command or you can download a repository image file.

Using pkgrecv

Using pkgrecv takes more time and requires your system to be connected to the Internet for a much longer time. If you use pkgrecv, specify http://pkg.oracle.com/solaris/release as the source, and be sure to specify the -m all-versions option. See the pkgrecv(1) man page for more information.

Using a Repository Image File

If you prefer to use a repository image file, first download the image file and then copy the contents to your existing repository. You can get the Oracle Solaris 11.1 repository image files from OTN or from eDelivery. Then follow these instructions.

Step 0. Assume the root role and snapshot your local Oracle Solaris 11 11/11 repository.

In this example, your local Oracle Solaris 11 11/11 repository is located at /export/repo/Solaris11.

# zfs snapshot rpool/export/repo/Solaris11@11-1111

Step 1. Download Oracle Solaris 11 from OTN.

Go to the download page. Read the "OTN License Agreement for Oracle Solaris" and click the Accept License Agreement button.

Step 2. Click the "MD5 checksum" link to display the checksums for the files you want to download.

Step 3. Scroll down to "Oracle Solaris 11.1 Repository Image."

Step 4. Click "Download Part A SPARC, x86" to get the file sol-11_1-repo-full.iso-a.

Verify the checksum like this:

# digest -a md5 sol-11_1-repo-full.iso-a

Step 5. Click "Download Part B SPARC, x86" to get the file sol-11_1-repo-full.iso-b.

Verify the checksum.

# digest -a md5 sol-11_1-repo-full.iso-b

Step 6. Click "Download Oracle Solaris 11 Pre-Upgrade Repository Image SPARC, x86 to get the file sol-11_1-upgrade-repo.iso.

Verify the checksum.

# digest -a md5 sol-11_1-upgrade-repo.iso

Step 7. Create one image file from the Part A and Part B files.

Verify the checksum of the resulting image file.

# cat sol-11_1-repo-full.iso-a sol-11_1-repo-full.iso-b > sol-11_1-repo-full.iso

Step 8. Merge the Oracle Solaris 11.1 packages from the repository image file into your local Oracle Solaris 11 11/11 repository.

# mount -F hsfs sol-11_1-repo-full.iso /mnt
# rsync -aP /mnt/repo/ /export/repo/Solaris11
# umount /mnt

Step 9. Merge packages from the Oracle Solaris 11 pre-upgrade repository image into your local Oracle Solaris 11 11/11 repository.

# mount -F hsfs sol-11_1-upgrade-repo.iso /mnt
# rsync -aP /mnt/repo/ /export/repo/Solaris11
# umount /mnt

Step 10. Catalog new packages.

# pkgrepo refresh -s /export/repo/Solaris11
# pkg refresh solaris

You can use the pkgrepo info and pkgrepo get commands to check the properties set on the updated repository.

Step 11. Snapshot your updated repository.

# zfs snapshot rpool/export/repo/Solaris11@11.1

Step 12. Check that your Solaris publisher origin is set to your local repository.

- Alta Elstad

Website Newsletter Facebook Twitter
Comments:

The pkgrecv(1) argument should be "-m all-versions" (or, if you want to get exactly what's in the upstream repository, "-m all-timestamps") It's also worth using a '-c' argument to pkgrecv, so that if there's any problem with network connectivity, we're able to continue the download using that cache directory once the network is back.

Personally, I'd prefer to use pkgrecv, as it requires much less work than downloading the repository and performing those manual steps.

Posted by Tim Foster on January 09, 2013 at 09:21 PM MST #

i love it

Posted by okeke john on January 19, 2013 at 03:14 PM MST #

Very interesting thank you very much good work

Posted by Thirion Stéphane on March 27, 2013 at 12:51 PM MDT #

Would be possible to support repository for 11.1 and 11/11 on the same host with one ips repo instance?

Posted by guest on February 03, 2014 at 05:36 AM MST #

Dears,

I dont have such directory (rpool/export/repo/Solaris11@11.1) on my server.
currently I have the following version:
((
root@tishkrac1:~# cat /etc/release
Oracle Solaris 11 11/11 SPARC
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Assembled 18 October 2011
root@tishkrac1:~#
))

but the directories you mentioned are not available.

Can guide or support here?

appreciate it

thanks

Barznj

Posted by guest on March 06, 2014 at 12:16 AM MST #

These instructions assume you already have an IPS package repository that you want to update with additional content. To create the original repository, including creating the directory, see:

Copying and Creating Package Repositories in Oracle Solaris 11
http://www.oracle.com/pls/topic/lookup?ctx=solaris11&id=CCOSP

Posted by Alta Elstad on March 06, 2014 at 11:41 AM MST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Contributors:
Rick Ramsey
Kemer Thomson
and members of the OTN community

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Blogs We Like