Go to main content

Creating Package Repositories in Oracle® Solaris 11.4

Exit Print View

Updated: November 2018
 
 

Resuming an Interrupted Package Receive

If the pkgrecv operation is interrupted, use the -c option to retrieve content that was already downloaded and resume the content download. The value of cache_dir is supplied in an informational message when the transfer is interrupted, as shown in the following example:

PROCESS                    ITEMS       GET (MB)        SEND (MB)
...
pkgrecv: http protocol error: code: 503 reason: Service Unavailable
URL: 'https://pkg.oracle.com/solaris/support/file/file_hash

pkgrecv: Cached files were preserved in the following directory:
        /var/tmp/pkgrecv-fOGaIg
Use pkgrecv -c to resume the interrupted download.
$ pkgrecv -c /var/tmp/pkgrecv-fOGaIg \
-s https://pkg.oracle.com/solaris/support -d /var/share/pkgrepos/solaris_tmp \
--key /path-to/key-file --cert /path-to/certificate-file '*'
Processing packages for publisher solaris ...
Retrieving and evaluating 156 package(s)...