October 1, 2009

Avoid yum-complete-transaction

Yes, the command that yum told me to run, yum-complete-transaction, completely destroyed my system by removing hundreds of packages, including yum itself. What started as a normal Wednesday night maintenance window update, turned into an all night re-install session.

yum-complete-transaction removed almost all RPM packages on my system with no warning prompts. The system happened to be a Xen hardware host, running multiple virtual hosts, so it hurt. This has got to be a bug, and it is one that has bitten many others:

For the first time in a while, I long for apt, which never left me hanging.

4 comments:

Macka said...

Ouch! Thanks for the heads up. Will watch out for that one.

Jeff said...

Oh man, that's painful. Thanks for sharing.

Chris said...

I have had that happen. If I run that now I make sure I have a root terminal open that has a nice long scroll history, and have downloaded at least the latest version of yum/rpm so that I can repair the damage if necessary. By scrolling backup and can see and re-install any packages that have been eroneously removed.

Fortunately it does not seem stop running processes, so at least things like Apache and MySQL keep going but you still need to type like mad to get everything going again properly.

Anonymous said...

This hosed one of web servers as well. Removed most/all the packages installed. Wish I read this earlier.