1

Say there's an application that install to /opt/ directory. I update it with yum. I do a full server backup, that is all the file systems (/opt/ maps to the root directory). Now, I discover a bug post upgrade or have the need for whatever reason to restore to the pre upgrade state. Should I:

a) restore the whole /opt/application directory along with its files and sub-directories; b) perform a complete system restore to the last backup c) or perform a yum roll back How to use yum history to roll back an update in Red Hat Enterprise Linux 6 , 7?

1

Use yum (or dnf in RHEL-7) to roll-back (remove) the application. This keeps the package repository consistent with the software installed.

  • Ok but what if the update made also changes to a MySQL DB on a remote server ? Doing a yum roll-back will not revert the changes made to the DB, right ? – blabla_trace Jan 11 at 10:04
  • Correct. The rollback is for the software package. – JRFerguson Jan 11 at 14:08
  • Thank you. So I'd would have to perform a yum roll-back + a DB restore to get the previous good know state? – blabla_trace Jan 11 at 14:24
  • 1
    Yes, the yum/dnf rollback takes care of the software. You need to deal with the database independently. – JRFerguson Jan 11 at 14:26

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.