4.10. 更改存储库的下载策略
您可以为存储库设置下载策略。
流程
- 在 Satellite Web UI 中,导航到 Content > Products。
- 选择所需的产品名称。
- 在 Repositories 选项卡上,单击所需的存储库名称,找到 Download Policy 字段,然后单击 edit 图标。
- 从列表中选择所需的下载策略,然后单击 Save。
CLI 过程
列出机构的存储库:
# hammer repository list \ --organization-label My_Organization_Label
更改存储库的下载策略,使其
立即
或on_demand
:# hammer repository update \ --download-policy immediate \ --name "My_Repository" \ --organization-label My_Organization_Label \ --product "My_Product"