0%

CENTOS使用YUM安装特定版本的软件

使用--showduplicates参数列出所有版本

1
2
3
4
5
6
7
8
9
[root@localhost ~]# yum search wget
=================================================================================== N/S matched: wget ===================================================================================
wget.x86_64 : A utility for retrieving files using the HTTP or FTP protocols


[root@localhost ~]# yum search wget --showduplicates
============================================================ N/S matched: wget =============================================================
wget-1.14-10.el7_0.1.x86_64 : A utility for retrieving files using the HTTP or FTP protocols
wget-1.14-15.el7_4.1.x86_64 : A utility for retrieving files using the HTTP or FTP protocols
1
2
3
4
5
6
7
8
9
10
11
12
13
[root@localhost ~]# yum list wget
Installed Packages
wget.x86_64 1.14-10.el7_0.1 @base
Available Packages
wget.x86_64 1.14-15.el7_4.1 base
[root@localhost ~]#


[root@localhost ~]# yum list wget --showduplicates
Installed Packages
wget.x86_64 1.14-10.el7_0.1 @base
Available Packages
wget.x86_64 1.14-15.el7_4.1 base

但是不建议安装前版本的软件,有可能出现不满足依赖的报错