YUM Install Specific Version of Package

YUM RHEL6 RHEL7 Linux Centos Redhat

By default, yum installs the latest version of a package among the all versions available in enabled repositories.

Often it is required to install not the latest one, but some specific version or downgrade the already installed package to an older version.

In this note i show how to make yum list all available versions of a specified package and how to instruct it to install the particular one.

Show All Versions Of Package

Run the following command to show all versions of a package, available in enabled repositories:

# yum list <package_name> --showduplicates

Install Specific Version Of Package

To install a specific version of a package, run:

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

Force Yum To Downgrade Package

If you already have the latest version of a package installed, but you need to downgrade it to the particular version that is older, execute:

# yum downgrade <package_name>-<version_info>.<platform_info (i686 or x86_64)>
0 0 votes
Article Rating
赞(1) 打赏
未经允许不得转载:iemblog » YUM Install Specific Version of Package
Subscribe
Notify of
guest

0 COMMENTS
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
免责声明:本站大部分下载资源收集于网络,只做学习和交流使用,版权归原作者所有,请在下载后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
Would love your thoughts, please comment.x
()
x