所以我昨晚做了更新,因为我决定我应该更新所有我可以更新的包。大错特错了。
现在我无法撤销这些变化,也没有告诉我原因。我试图撤消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但它并没有告诉我为什么或该尝试什么,所以我迷失了方向。当我尝试将x包降级时,它告诉我“只能升级软件包:X包”。
编辑2:如果它成功了,我应该看到百胜的动作66,不是吗?
发布于 2017-09-17 16:39:00
1)下载显示消息Failed to downgrade的所有包。您可以对rpms使用centos 金库url。
2)将所有的rpm放在一个目录中(比如/tmp/yum_repo_test/)
3)创建本地存储库createrepo --update /tmp/yum_repo_test/
4)创建具有以下内容的文件/etc/yum.repos.d/temp.repo:
[temp-local]
name=temp Repository
baseurl=file:/tmp/yum_repo_test
enabled=1
gpgcheck=05)清理和更新yum缓存yum clean all && yum makecache fast
6)还原yum更新yum history undo 65
是的,如果撤销成功,则创建另一个事务id。
发布于 2018-06-21 13:32:14
yum clean all
yum downgrade <rpm name> -yhttps://unix.stackexchange.com/questions/329285
复制相似问题