即使降级,我如何强制安装yum?

Edd*_*vas 6 build yum downgrade

因此,情况如下:我有一些系统可以从CI服务器下载构建版本并进行安装。这些内部版本是未发布的内部版本,但是命名约定中包含一个时间戳来确定较新的内部版本。因此,我安装了其中一个版本,对其进行了很好的测试。

Well, at some point I want to revert back to our actual released builds which are on our local yum repo. But if I did yum install -y somepackage, install is going to say that the version its trying to download is obsoleted by this unreleased version I've installed.

What I'm wondering is if there's a way to force yum to install the build even if its obsoleted by the currently installed one, or am I going to be forced to yum remove the installed build before yum installing the released build?

I don't mind doing the latter, but the former is a better solution because some high availability components that depend on this RPM complain when it goes missing, so I'm wondering if it's possible.

Thanks ahead of time!

use*_*610 5

yum downgrade somepackage
Run Code Online (Sandbox Code Playgroud)

此外,yum history在类似情况下,下面的命令可能会对您有所帮助。


max*_*zig 5

是的,您可以使用downgrade子命令安装较旧的可用版本(已安装的软件包):

yum -y downgrade mypackage-1.2.3-4
Run Code Online (Sandbox Code Playgroud)

请注意,您必须明确指定要降级到的软件包的版本/发行版。

此命令也可用于dnfyum 后继者。


M-A*_*A-X 0

yum update-to <package-name>