2.2. 配置软件仓库
前提条件
- 如果您要将 Capsule 服务器安装为 Red Hat Virtualization 上托管的虚拟机,还必须启用 Red Hat Common 软件仓库,然后安装 Red Hat Virtualization 客户机代理和驱动程序。如需更多信息,请参阅虚拟机管理指南中的在 Red Hat Enterprise Linux 上安装客户机代理和驱动程序。
流程
禁用所有软件仓库:
subscription-manager repos --disable "*"
# subscription-manager repos --disable "*"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 启用以下软件仓库:
subscription-manager repos \ --enable=rhel-9-for-x86_64-baseos-rpms \ --enable=rhel-9-for-x86_64-appstream-rpms \ --enable=satellite-capsule-6.17-for-rhel-9-x86_64-rpms \ --enable=satellite-maintenance-6.17-for-rhel-9-x86_64-rpms
# subscription-manager repos \ --enable=rhel-9-for-x86_64-baseos-rpms \ --enable=rhel-9-for-x86_64-appstream-rpms \ --enable=satellite-capsule-6.17-for-rhel-9-x86_64-rpms \ --enable=satellite-maintenance-6.17-for-rhel-9-x86_64-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
验证
验证是否启用了所需的软件仓库:
dnf repolist enabled
# dnf repolist enabled
Copy to Clipboard Copied! Toggle word wrap Toggle overflow