JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Copying and Creating Oracle Solaris 11.1 Package Repositories     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Image Packaging System Package Repositories

2.  Copying IPS Package Repositories

Copying a Repository from the Internet

Create the Infrastructure for the Local Repository

Copy the Repository

Copying a Repository from a File

Get the Package Repository File

Make the Contents of the Repository File Available

Copy the Repository Files

Unmount the Image

Build a Search Index and Snapshot the Repository

3.  Providing Access To Your Repository

4.  Maintaining Your Local IPS Package Repository

Copying a Repository from a File

This section describes how to make a local copy of the Oracle Solaris 11.1 release package repository from a repository file that is on media or is available on the Oracle Solaris 11.1 download site.

Get the Package Repository File

Download the Oracle Solaris 11.1 IPS package repository .iso files from the same location where you downloaded the system installation image, or locate the repository DVD in the media packet. The repository is in two files and is approximately 7 gigabytes total.

In addition to the repository .iso files, two other files are provided.

Copy the repository files to the file system you created in the last step. Concatenate the files into one file.

$ cat sol-11_1-repo-full.iso-a sol-11_1-repo-full.iso-b > \
sol-11_1-repo-full.iso
$ ls /export/repoSolaris11
sol-11_1-repo-full.iso

Make the Contents of the Repository File Available

Make the contents of the repository .iso file available.

$ pfexec mount -F hsfs /export/repoSolaris11/sol-11_1-repo-full.iso /mnt
$ ls /mnt
COPYRIGHT  NOTICES    README     repo

If you receive an error message from the mount command, make sure you specified a full absolute path to the .iso file.

Check your work:

$ df -k /mnt
Filesystem                                    1K-blocks     Used Available Use% Mounted on
/export/repoSolaris11/sol-11_1-repo-full.iso    6778178  6778178         0 100% /mnt

You will need to remount the .iso image each time the repository server system restarts. To avoid the need to remount the .iso each time the system restarts, copy the repository files as described in the next section.

Copy the Repository Files

To increase the performance of repository accesses and to avoid the need to remount the .iso image each time the system restarts, copy the repository files from /mnt/repo/ to a ZFS file system. You can do this copy with rsync or with tar.

Check your work:

$ ls /export/repoSolaris11
pkg5.repository            README
publisher                  sol-11_1-repo-full.iso
$ df -k /export/repoSolaris11
Filesystem                 1K-blocks      Used Available Use% Mounted on
rpool/export/repoSolaris11 191987712  13733450  75787939  16% /export/repoSolaris11

Unmount the Image

Unmount the image.

$ pfexec umount /mnt