In Red Hat Enterprise Linux 5.9, yum uninstalls original package after a failed package update.
Issue
- In Red Hat Enterprise Linux 5.9, with
yum-3.2.22-33.el5.noarchwhen updating packages,yumuninstalls original package after a failed package update. - Scenario:
- Packages A 1.x and B 1.x are installed.
- A and B should both be updates to their 2.0 releases.
- A and B depend on each other and require each other to be on the same major version.
- Observed behaviour:
- Update A and B
yumstarts to update A from 1.x to 2.0- A-2.0's
%prescript fails - A is not updated to 2.0
- B is updated to 2.0
- A 1.x is uninstalled
- B 1.x is uninstalled
yumhas finished- Result : Installation is broken because A is not installed anymore and executed it's final uninstall scripts (like database deletion).
- Expected minimal behaviour:
yum update A Byumstarts to update A from 1.x to 2.0- A-2.0's
%prescript fails - A is not updated to 2.0
- B is updated to 2.0
- A 1.x remains installed
- B 1.x is uninstalled
yumhas finished- Result : Installation is broken because B's requirements (A >= 2.0) are not met. Data is still on place.
- Expected optimal behaviour:
yum update A Byumstarts to update A from 1.x to 2.0- A-2.0's
%prescript fails - A is not updated to 2.0
- B's update is skipped because the requirement on A is not met
- A 1.x remains installed
- B 1.x remains installed
yumhas finished- Result: installation still works, update failed.
Environment
- Red Hat Enterprise Linux 5.9
rpm-4.4.2.3-22.el5.x86_64yum-3.2.22-33.el5.noarch
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
