Yum Downgrade Packages on Red Hat (RHEL)

[size=small]当用yum安装软件时,经常会遇到依赖的软件包版本和现在软件需要的版本不一致问题,这时候需要我们手动去执行一下yum downgrade.

[b]YUM Downgrade Basic Usage[/b]


[img]http://dl2.iteye.com/upload/attachment/0098/8377/7f8bd5a2-bab4-3103-a98c-0841439954f9.png[/img]

Example:
[img]http://dl2.iteye.com/upload/attachment/0098/8385/62e0a08d-52fa-3208-acbe-a45e7d0024e6.png[/img]

[b]YUM Downgrade Package Which Have Dependencies[/b]
YUM downgrade is more difficult with packages that have dependencies. YUM downgrade does not resolve dependencies automatically, so it must be done manually.

[img]http://dl2.iteye.com/upload/attachment/0098/8379/81f47a5a-bb8e-30b3-b23e-70b8110a1e9d.png[/img]


Example: check package dependencies manually
[img]http://dl2.iteye.com/upload/attachment/0098/8381/210935c6-2675-3f9b-8191-f9a3d41dfd7f.png[/img]

SQLite package depends on sqlite-devel package, so both (sqlite-devel and sqlite) have to be downgraded:
# yum downgrade sqlite-devel sqlite
[img]http://dl2.iteye.com/upload/attachment/0098/8383/66f789bf-caba-3557-9271-c5cf5c10d233.png[/img]


[/size]

你可能感兴趣的:(Yum Downgrade Packages on Red Hat (RHEL))