如何yum降级到jdk等特定版本的packet?

如何yum降级到jdk等特定版本的packet?

我知道它是 sudo yum downgrade <package_name>-<version_info>

但总是找不到包。

例如

sudo yum --showduplicates list java-1.7.0-openjdk
Installed Packages
java-1.7.0-openjdk.x86_64                                     1:1.7.0.261-2.6.22.1.el6_10                                     @C6.10-updates
Available Packages
java-1.7.0-openjdk.x86_64                                     1:1.7.0.181-2.6.14.10.el6                                       C6.10-base    
java-1.7.0-openjdk.x86_64                                     1:1.7.0.191-2.6.15.4.el6_10                                     C6.10-updates 
java-1.7.0-openjdk.x86_64                                     1:1.7.0.201-2.6.16.0.el6_10                                     C6.10-updates 
java-1.7.0-openjdk.x86_64                                     1:1.7.0.211-2.6.17.1.el6_10                                     C6.10-updates 
java-1.7.0-openjdk.x86_64                                     1:1.7.0.221-2.6.18.0.el6_10                                     C6.10-updates 
java-1.7.0-openjdk.x86_64                                     1:1.7.0.231-2.6.19.1.el6_10                                     C6.10-updates 
java-1.7.0-openjdk.x86_64                                     1:1.7.0.231-2.6.19.2.el6_10                                     C6.10-updates 
java-1.7.0-openjdk.x86_64                                     1:1.7.0.241-2.6.20.0.el6_10                                     C6.10-updates 
java-1.7.0-openjdk.x86_64                                     1:1.7.0.251-2.6.21.0.el6_10                                     C6.10-updates 
java-1.7.0-openjdk.x86_64                                     1:1.7.0.261-2.6.22.1.el6_10                                     C6.10-updates 

1:1.7.0.201-2.6.16.0.el6_10 是我想要的版本

然后我发出

sudo yum downgrade java-1.7.0-openjdk.x86_64-1:1.7.0.201-2.6.16.0.el6_10

No package java-1.7.0-openjdk.x86_64-1:1.7.0.201-2.6.16.0.el6_10 available.
Nothing to do

我试过

sudo yum downgrade java-1.7.0-openjdk-1:1.7.0.201-2.6.16.0.el6_10       

No package java-1.7.0-openjdk-1:1.7.0.201-2.6.16.0.el6_10 available.
Nothing to do

有人可以帮忙吗???

相关内容