如果 pkgrecv 操作中断,请使用 -c 选项检索已下载的内容并继续下载内容。传输中断时,信息性消息中将显示 cache_dir 的值,如以下示例中所示:
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 /export/IPSpkgrepos/Solaris_tmp \ --key /path/to/ssl_key --cert /path/to/ssl_cert '*' Processing packages for publisher solaris ... Retrieving and evaluating 156 package(s)...