2.3. 从离线软件仓库安装 Satellite 软件包
使用这个流程从离线仓库安装 Satellite 软件包。
流程
确定挂载 Red Hat Enterprise Linux 服务器和 Red Hat Satellite 的 ISO 镜像:
# findmnt -t iso9660
导入 Red Hat GPG 密钥:
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
确定基本操作系统与 Binary DVD 镜像最新:
# dnf update
进入挂载 Satellite ISO 的目录:
# cd /media/sat6/
在挂载的目录中运行安装脚本:
# ./install_packages
注意脚本包含一个启用
satellite:el8
模块的命令。启用模块satellite:el8
会警告与postgresql:10
和ruby:2.5
冲突,因为这些模块在 Red Hat Enterprise Linux 8 中被设置为默认模块版本。模块satellite:el8
依赖于模块postgresql:12
和ruby:2.7
,它将通过satellite:el8
模块启用。这些警告不会导致安装过程失败,因此可以安全地忽略。有关 Red Hat Enterprise Linux 8 中的模块和生命周期流的更多信息,请参阅 Red Hat Enterprise Linux Application Streams 生命周期。如果您已成功安装 Satellite 软件包,会显示以下信息:
Install is complete。请运行 satellite-installer --scenario satellite
。