How to Rollback updates with yum history command on CentOS / RHEL Servers

Pradeep Kumar

I am a huge fan of open source and love to share How To's tutorials on Linux, Cloud and DevOps. I have been working as Linux Consultant, Cloud & DevOps Engineer since 2010

You may also like...

3 Responses

  1. Brian T. says:

    This is helpful. Thank you. I had a similar situation, but I wasn’t able to track down when the initial change happened, so I don’t think these steps would help. Let’s say instead of “undoing” an update that we want to downgrade to a previous package. I think my distro version had the latest version of a package, Java, and I wanted to downgrade to an earlier version. Can you explain how to do this?

    • Hi Brain,

      You can use downgrade option in yum command but for that you have to make sure earlier Java version rpm package should be available in your yum repository.
      # yum downgrade java-{version}

      Yum command also stores all its transaction in sqlite database, using “yum history list all” you can check all yum updates history along with time.

  2. Mushtaque says:

    Can we follow this for patch roll back too…

Leave a Reply

Your email address will not be published. Required fields are marked *