|Skip Navigation Links|
|Exit Print View|
|Copying and Creating Oracle Solaris 11.1 Package Repositories Oracle Solaris 11.1 Information Library|
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.
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.
Checksum file. Click the “MD5 checksum” link near the top of the Downloads page. Checksums are provided for the two repository files and for the concatenation of those two files. Compare the output from the following command to the appropriate value from the checksum file to confirm that your download was successful.
$ digest -a md5 iso_file
README file. The README file contains the information in this section, along with additional information such as how to copy the repository to USB or DVD media.
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 .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.
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.
If you use the rsync command, be sure to specify /mnt/repo/ (including the trailing slash character) and not /mnt/repo to copy the files and subdirectories in the repo directory. See the rsync(1) man page.
$ rsync -aP /mnt/repo/ /export/repoSolaris11
Using the tar command as shown in the following example can be a faster way to move the repository from the mounted file system to the repository ZFS file system.
$ cd /mnt/repo; tar cf - . | (cd /export/repoSolaris11; tar xfp -) $ cd /export/repoSolaris11
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.
$ pfexec umount /mnt