Copying and Creating Package Repositories in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

How to Clone a Local IPS Package Repository

See How to Update a Local IPS Package Repository for details of these steps.

  1. Copy the destination repository.

    Make sure you have a current snapshot of the destination repository. Make a ZFS clone of this snapshot.

  2. Update the copy of the destination repository.

    Use the pkgrecv command to clone your previously updated local package repository to the copy of the destination repository. See the pkgrecv(1) man page for more information about the pkgrecv clone operation.

    $ pkgrecv -s /net/host1/export/IPSpkgrepos/Solaris \
    -d /net/host2/export/IPSpkgrepos/Solaris_tmp --clone
  3. Replace the working destination repository with the updated clone.
  4. Verify the updated repository.

    Use the pkgrepo verify command to verify the updated destination repository.

  5. Snapshot the newly updated repository.
  6. Restart the SMF service.

    If you are providing the repository through an HTTP interface, restart the SMF service. Be sure to specify the appropriate service instance when you restart the service.

  7. Remove the old repository.

    When you are satisfied that your updated repository is working correctly, remove the old repository.

See also

If you are providing the repository through an HTTP interface, see the following related documentation: