24.2. 中断されたダウンロードの再開
curl コマンドを使用して、中断したダウンロードを再開します。
前提条件
- Red Hat カスタマーポータルの 製品ダウンロード セクション (https://access.redhat.com/downloads) に移動し、必要なバリアント、バージョン、およびアーキテクチャーを選択している。
- 必要な ISO ファイルを右クリックし、リンク先をコピー を選択して、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 などのチェックサムユーティリティーを使用します。
sha256sum rhel-x.x-x86_64-dvd.iso `85a...46c 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 の Web ページ 製品ダウンロード にある参照チェックサムと比較します。
例24.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 -