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
, specifyhttp://pkg.oracle.com/solaris/release
as the source, and be sure to specify
the -t 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 fromeDelivery. 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 |