|Skip Navigation Links|
|Exit Print View|
|Copying and Creating Oracle Solaris 11 Package Repositories Oracle Solaris 11 Information Library|
Before you transfer newer packages into your local repository, make sure your repository server is running the same or a newer version of the Oracle Solaris 11 OS as the version for which the packages you plan to copy are built. For example, if the server is running Oracle Solaris 11 and you want to update your repository to the Oracle Solaris 11 Update 1 repository, update the server to Oracle Solaris 11 Update 1 before you update your repository.
Whether you used the pkgrecv command or .iso files to create your local IPS package repository, use the pkgrecv(1) command to update the repository. Only packages that have changed are updated. See the performance tips in Copy the Repository.
# pkgrecv -s http://pkg.oracle.com/solaris/release/ -d /export/repoSolaris11 '*'
If you are going to be doing this update on a regular basis, you might want to use the PKG_SRC and PKG_DEST environment variables.
# export PKG_SRC=http://pkg.oracle.com/solaris/release/ # export PKG_DEST=/export/repoSolaris11 # pkgrecv '*'
After you have updated your repository, run the following command to catalog any new packages found in the repository and update all search indexes.
# pkgrepo -s /export/repoSolaris11 refresh Initiating repository refresh.