如何使用Yum轻松降级软件包?


11

显然,Fedora yum具有降级的能力。我发现这很有用,因为他们很讨厌他们认为需要在稳定的升级版本中 破坏NetworkManager。以多种方式。

如何降级NetworkManager及其相关的所有内容?我可以yum反向进行工作吗?

[root@x200s NetworkManager]# yum downgrade NetworkManager-0.8.999-2.git20110509.fc15.i686
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Downgrade Process
Resolving Dependencies
--> Running transaction check
---> Package NetworkManager.i686 1:0.8.999-2.git20110509.fc15 will be a downgrade
--> Processing Dependency: NetworkManager-glib = 1:0.8.999-2.git20110509.fc15 for package: 1:NetworkManager-0.8.999-2.git20110509.fc15.i686
---> Package NetworkManager.i686 1:0.8.999-3.git20110526.fc15 will be erased
--> Finished Dependency Resolution
Error: Package: 1:NetworkManager-gnome-0.8.999-3.git20110526.fc15.i686 (@updates)
           Requires: NetworkManager = 1:0.8.999-3.git20110526.fc15
           Removing: 1:NetworkManager-0.8.999-3.git20110526.fc15.i686 (@updates)
               NetworkManager = 1:0.8.999-3.git20110526.fc15
           Downgraded By: 1:NetworkManager-0.8.999-2.git20110509.fc15.i686 (fedora)
               NetworkManager = 1:0.8.999-2.git20110509.fc15
Error: Package: 1:NetworkManager-0.8.999-2.git20110509.fc15.i686 (fedora)
           Requires: NetworkManager-glib = 1:0.8.999-2.git20110509.fc15
           Installed: 1:NetworkManager-glib-0.8.999-3.git20110526.fc15.i686 (@updates)
               NetworkManager-glib = 1:0.8.999-3.git20110526.fc15
           Available: 1:NetworkManager-glib-0.8.999-2.git20110509.fc15.i686 (fedora)
               NetworkManager-glib = 1:0.8.999-2.git20110509.fc15
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

有没有一种方法可以在不独立执行每个程序包的情况下进行降级?

Answers:



3

如果您以前在该系统上有工作版本,则yum history是goto命令。它将列出交易,并允许您回滚到某个点或撤消单个操作,请参见此处。

http://docs.fedoraproject.org/zh-CN/Fedora/14/html/Software_Management_Guide/ch05s16.html

另外,如果您希望使用yum-allow-downgrade插件降级具有多个受版本限制的依赖项的东西,则会清理出您看到的依赖项错误。它将添加一个--allow-downgrade选项供您使用。

如果您故意使用旧版本,建议您查看版本锁定包。这将防止您自己/同事/计划的更新破坏您的工作。

http://docs.fedoraproject.org/zh-CN/Fedora/14/html/Software_Management_Guide/ch06s25.html

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.