Is there any way to roll back a single package from yum update. I've noticed that the rpm --rollback switch is depreciated in SL linux 6.2.

There is also yum history however I would like to rollback one particular packages that it's not working (libvirt) however it was updated with yum update command so I would have to revert all the other packages what is not desired.



With yum, you get the downgrade option. Doing yum downgrade <package name> downgrade one version. That, and this rather archaic way of rolling back via rpm.

However, as of yum.3.2.25 you get the context switch history, which also includes an undo function.

| improve this answer | |
  • Is it possible to "undo" only one a specific package form the history if the update was done with "yum update" command and multiply packages were upgraded. – HTF Jul 11 '12 at 11:02
  • I'm not quite sure. I'll give a shot at a few things before outright saying downgrade to correct version – qweet Jul 11 '12 at 11:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.