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

5 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…

  3. Firdaus says:

    Hi guys..can we rollback RHEL 6 using this step?

  4. Shareef says:

    Thanks. Keep on.

Leave a Reply

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