6.9. 更改存储库的下载策略

您可以为存储库设置下载策略。

流程

  1. 在 Satellite Web UI 中,导航到 Content > Products
  2. 选择所需的产品名称。
  3. Repositories 选项卡中,点所需的存储库名称,找到 Download Policy 字段,然后点编辑图标。
  4. 从列表中选择所需的下载策略,然后单击 Save

CLI 过程

  1. 列出机构的软件仓库:

    # hammer repository list \
    --organization-label My_Organization_Label
  2. 将存储库的下载策略更改为 immediateon_demand

    # hammer repository update \
    --download-policy immediate \
    --name "My_Repository" \
    --organization-label My_Organization_Label \
    --product "My_Product"