所以我做了百胜更新昨晚因为我决定我应该更新我能更新的所有软件包。大错。
现在我无法撤消更改,而且它也没有告诉我原因。我正在尝试撤消 65(如通过百胜历史):
ID | Login user | Date and time | Action(s) | Altered
65 | My User <guy> | 2016-12-08 18:07 | I, O, U | 800 EE
64 | My User <guy> | 2016-12-08 17:44 | Erase | 1
63 | My User <guy> | 2016-12-08 17:29 | Update | 1
所以我这样做百胜历史撤消 65。起初看起来还不错,给了我看起来像这样的东西:
Updated ConsoleKit-0.4.1-3.el6.x86_64 @anaconda-CentOS-201311272149.x86_64/6.5
Update 0.4.1-6.el6.x86_64 @base
Updated ConsoleKit-libs-0.4.1-3.el6.x86_64 @anaconda-CentOS-201311272149.x86_64/6.5
Update 0.4.1-6.el6.x86_64 @base
Updated ConsoleKit-x11-0.4.1-3.el6.x86_64 @anaconda-CentOS-201311272149.x86_64/6.5
Update 0.4.1-6.el6.x86_64 @base
Updated NetworkManager-1:0.8.1-66.el6.x86_64 @anaconda-CentOS-201311272149.x86_64/6.5
Update 1:0.8.1-107.el6.x86_64 @base
Updated NetworkManager-glib-1:0.8.1-66.el6.x86_64 @anaconda-CentOS-201311272149.x86_64/6.5
Update 1:0.8.1-107.el6.x86_64 @base
Updated NetworkManager-gnome-1:0.8.1-66.el6.x86_64 @anaconda-CentOS-201311272149.x86_64/6.5
Update 1:0.8.1-107.el6.x86_64 @base
但归根结底,无非是:
Failed to downgrade: ConsoleKit-0.4.1-3.el6.x86_64
Failed to downgrade: ConsoleKit-libs-0.4.1-3.el6.x86_64
Failed to downgrade: ConsoleKit-x11-0.4.1-3.el6.x86_64
Failed to downgrade: 1:NetworkManager-0.8.1-66.el6.x86_64
Failed to downgrade: 1:NetworkManager-glib-0.8.1-66.el6.x86_64
Failed to downgrade: 1:NetworkManager-gnome-0.8.1-66.el6.x86_64
...
Error: No package(s) available to install
它没有告诉我为什么或要尝试什么,所以我迷失了。当我尝试时yum 降级 x-package它告诉我“仅升级包可用:x-package”。
编辑 2:如果它有效,我应该看到 yum action 66 不是吗?
答案1
Failed to downgrade
1) 下载显示该消息的所有软件包。你可以使用centos保险库网址为转速。
2)将所有rpm放在一个目录中(比如说/tmp/yum_repo_test/
)
3)创建本地仓库
createrepo --update /tmp/yum_repo_test/
/etc/yum.repos.d/temp.repo
4)创建一个包含以下内容的文件:
[temp-local]
name=temp Repository
baseurl=file:/tmp/yum_repo_test
enabled=1
gpgcheck=0
5) 清理和更新yum
缓存
yum clean all && yum makecache fast
6) 恢复yum
更新
yum history undo 65
是的,如果撤消成功,则会创建另一个事务 ID。
答案2
yum clean all
yum downgrade <rpm name> -y