Linux Patch Rollback Implementation
Linux Patch Rollback Implementation
Linux Patch Rollback Implementation
In case the Application or Database is not functioning properly after Patching then Rollback is
required. So to implement the Rollback of patching rollback configuration has to be performed
before implementing the patches.
# installonly_limit = 3
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
Example Command
# rpm -Uhv --rollback 'August 12'
patch)
vsftpd-2.0.5-16.el5_5.1
yum)
Package
Arch
Version
Repository
Size
==================================================
==================================================
==================================================
=============================
Updating:
vsftpd
x86_64
2.0.5-21.el5
rhel-x86_64-server-5
140 k
Transaction Summary
==================================================
==================================================
==================================================
=============================
Install
0 Package(s)
Upgrade
1 Package(s)
Total download size: 140 k
Is this ok [y/N]: y
Downloading Packages:
vsftpd-2.0.5-21.el5.x86_64.rpm
| 140 kB
00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Repackaging : vsftpd
0/2
Updating
: vsftpd
1/2
Cleanup
: vsftpd
2/2
Updated:
vsftpd.x86_64 0:2.0.5-21.el5
Complete!
[root@zola2 ~]# rpm -qa |grep vsftpd
version)
vsftpd-2.0.5-21.el5
will be back)
vsftpd-2.0.5-16.el5_5.1
Dep-Install vamp-plugin-sdk-2.1-1.el6.x86_64
Dep-Install wxBase-2.8.12-1.el6.x86_64
Dep-Install wxGTK-2.8.12-1.el6.x86_64
history info
[rprice@x200 ~]$ yum history undo 45
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
google-talkplugin
| 951 B
00:00
rhel-src
| 951 B
00:00
Undoing transaction 45, from Fri Jul 29 15:19:57 2011
Install
audacity-1.3.12-0.6.beta.el6.x86_64
Dep-Install soundtouch-1.5.0-1.el6.x86_64
Dep-Install vamp-plugin-sdk-2.1-1.el6.x86_64
Dep-Install wxBase-2.8.12-1.el6.x86_64
Dep-Install wxGTK-2.8.12-1.el6.x86_64
Resolving Dependencies
--> Running transaction check
---> Package audacity.x86_64 0:1.3.12-0.6.beta.el6 will be erased
---> Package soundtouch.x86_64 0:1.5.0-1.el6 will be erased
---> Package vamp-plugin-sdk.x86_64 0:2.1-1.el6 will be erased
---> Package wxBase.x86_64 0:2.8.12-1.el6 will be erased
---> Package wxGTK.x86_64 0:2.8.12-1.el6 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
==================================================
==================================================
==================================================
=========
Package
Arch
Version
Repository
Size
==================================================
==================================================
==================================================
=========
Removing:
audacity
x86_64
1.3.12-0.6.beta.el6
@epel
13 M
soundtouch
x86_64
1.5.0-1.el6
@epel
139 k
vamp-plugin-sdk
x86_64
2.1-1.el6
@epel
482 k
wxBase
x86_64
2.8.12-1.el6
@epel
1.7 M
wxGTK
x86_64
2.8.12-1.el6
@epel
11 M
Transaction Summary
==================================================
==================================================
==================================================
=========
Remove
5 Package(s)
Installed size: 27 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : audacity-1.3.12-0.6.beta.el6.x86_64
1/5
Erasing : wxGTK-2.8.12-1.el6.x86_64
2/5
Erasing : wxBase-2.8.12-1.el6.x86_64
3/5
Erasing : soundtouch-1.5.0-1.el6.x86_64
4/5
Erasing : vamp-plugin-sdk-2.1-1.el6.x86_64
5/5
duration: 2135(ms)
Installed products updated.
Removed:
audacity.x86_64 0:1.3.12-0.6.beta.el6
soundtouch.x86_64 0:1.5.0-1.el6
vamp-plugin-sdk.x86_64 0:2.1-1.el6
wxBase.x86_64 0:2.8.12-1.el6
wxGTK.x86_64 0:2.8.12-1.el6
Complete!
[rprice@x200 ~]$
Refer to the below link for more info
https://access.redhat.com/knowledge/solutions/64069
http://people.redhat.com/rprice/yum_history.txt