附录 A. 在 Satellite 服务器或 Capsule 服务器的基本操作系统上管理软件包


Satellite 提供 satellite-maintain package 命令,用于在 Satellite 服务器或 Capsule 服务器的基本操作系统中安装和更新软件包

警告

使用 dnf 安装和更新单个软件包会默认锁定,且不被支持。虽然 Satellite 提供了 satellite-maintain package unlock 命令来绕过锁定并使用 dnf 启用软件包管理,这可能会导致配置不一致并破坏系统的稳定性。始终使用 satellite-maintain 软件包来安装和更新软件包

在基本操作系统中安装或升级软件包后,需要运行 satellite-installersatellite-maintain package 命令在使用 satellite-installer 来安装或更新软件包后自动运行。请注意,如果更新软件包受影响的服务配置,运行 satellite-installer 可能会触发服务重启。

Expand
表 A.1. satellite-maintain 软件包 子命令概述
子命令描述
satellite-maintain packages install My_Package
Copy to Clipboard Toggle word wrap

在 Satellite 服务器或 Capsule 服务器上安装软件包

satellite-maintain packages check-update
Copy to Clipboard Toggle word wrap

检查 Satellite 服务器或 Capsule 服务器上可用的软件包更新

satellite-maintain packages update
Copy to Clipboard Toggle word wrap

更新 Satellite 服务器或 Capsule 服务器上的所有软件包

satellite-maintain packages update My_Package
Copy to Clipboard Toggle word wrap

更新 Satellite 服务器或 Capsule 服务器上的特定软件包

satellite-maintain packages lock
Copy to Clipboard Toggle word wrap

通过防止用户使用 dnf 管理软件包,启用软件包锁定以确保基础操作系统的稳定性。

其他资源

  • 有关将 Satellite 更新至下一个补丁版本的详情,请参考 更新 Red Hat Satellite
  • 有关使用 satellite-maintain 软件包 的完整参考,请参阅 satellite-maintain 软件包 --help 的帮助
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat