B.2. 恢复被中断的下载
您可以使用 curl
命令恢复中断的下载。
先决条件
- 您已导航到红帽客户门户网站的 Product Downloads 部分,地址为 https://access.redhat.com/downloads,并选择了所需的变体、版本和架构。
- 您右键点击所需 ISO 文件,并选择 Copy Link Location 将 ISO 镜像文件的 URL 复制到您的剪贴板。
流程
从新链接下载该 ISO 镜像。添加
--continue-at
选项以自动恢复下载:curl --output directory-path/filename.iso 'new_copied_link_location' --continue-at -
$ curl --output directory-path/filename.iso 'new_copied_link_location' --continue-at -
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 使用 sha256sum 等 checksum 程序在下载完成后验证镜像文件的完整性:
sha256sum rhel-x.x-x86_64-dvd.iso
$ sha256sum rhel-x.x-x86_64-dvd.iso `85a...46c rhel-x.x-x86_64-dvd.iso`
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 将输出与 Red Hat Enterprise Linux 产品下载网页中提供的 checksum 进行比较。
例 B.1. 恢复被中断的下载
以下是部分下载的 ISO 镜像的 curl
命令示例:
curl --output _rhel-x.x-x86_64-dvd.iso 'https://access.cdn.redhat.com//content/origin/files/sha256/85/85a...46c/rhel-x.x-x86_64-dvd.iso?_auth=141...963' --continue-at -
$ curl --output _rhel-x.x-x86_64-dvd.iso 'https://access.cdn.redhat.com//content/origin/files/sha256/85/85a...46c/rhel-x.x-x86_64-dvd.iso?_auth=141...963' --continue-at -