YUM 安装特定版本的软件包

YUM RHEL6 RHEL7 Linux Centos Redhat

默认情况下,yum安装已启用存储库中可用的所有版本中的软件包的最新版本。

有时我们需要安装的不是最新版本,而是某些特定版本,或者将已经安装的软件包降级为较旧的版本。

下面我们来看看如何使yum列出指定软件包的所有可用版本,以及如何指示它安装特定软件包。

显示软件包的所有版本

运行以下命令以显示软件包的所有版本,这些版本在启用的存储库中可用:

# yum list <package_name> --showduplicates

安装软件包的特定版本

要安装特定版本的软件包,请运行:

# yum install <package_name>-<version_info>.<platform_info (i686 or x86_64)>

强制yum降级软件包

如果已经安装了软件包的最新版本,但是需要将其降级到较旧的特定版本,请执行:

# yum downgrade <package_name>-<version_info>.<platform_info (i686 or x86_64)>
0 0 投票数
喜欢就给个好评吧!
赞(1) 打赏
未经允许不得转载:爱易默博客 » YUM 安装特定版本的软件包
订阅评论
提醒
guest

0 评论
内联反馈
查看所有评论
免责声明:本站大部分下载资源收集于网络,只做学习和交流使用,版权归原作者所有,请在下载后24小时之内自觉删除,若作商业用途,请购买正版,由于未及时购买和付费发生的侵权行为,与本站无关。本站发布的内容若侵犯到您的权益,请联系站长删除,我们将及时处理! Disclaimer: Most of the download resources on this site are collected on the Internet, and are only used for learning and communication. The copyright belongs to the original author. Please consciously delete within 24 hours after downloading. If you use it for commercial purposes, please purchase the original version. If the content posted on this site violates your rights, please contact us to delete it, and we will deal with it in time!

联系我们 Contact us

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

0
希望看到您的想法,请您发表评论x