Show Table of Contents
35.4. 使用 yum 安装软件包
可使用 yum 程序在系统中安装软件包。
要安装单一软件包及其所有未安装的相依性,请使用以下格式的命令:
yuminstallpackage_name
要在 multilib 系统(比如 AMD64 或 Intel64 机器)中安装软件包,可通过在软件包名称后附加 .arch 指定软件包的具体架构(只要该做启用的库中可用)。例如:要为
i686 系统安装 foobar 软件包,请输入:
~]# yum install foobar.i686
要在系统无法访问网络或者互联网时安装软件包,请考虑启用安装 DVD 或 ISO 映像文件作为安装库(请参考 第 35.3.1.2 节 “使用 Red Hat Enterprise Linux 安装 DVD 作为软件程序库”)。如果要为不同架构安装软件包,请选择正确的安装介质。例如:要在 64 位系统中安装 32 位软件包,请启用 32 位介质作为安装库。
For more information on installing packages, refer to the Yum chapter in the Red Hat Enterprise Linux Deployment Guide.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.