Technical Stuff

Start from basics

Best Patching in Linux & Rollback Guide

Best Patching in Linux & Rollback Guide
Best Patching in Linux & Rollback Guide
4.1 (81.43%) 28 votes

Hi EveryOne ! Today, we are discussing regarding patching in linux system and rollback if any inconsistency with application.

Lets begin with the basic concepts.

What is a Patch ?

A Patch is a software code which is inserted in system for quickfix of any issue or security related. A patch is basically a quickfix of a existing code. A Patch is released every quarterly on redhat website.

What is Patching?

A process of inserting software code in system is called as patching. By doing patching its help system to be secured and updated.

For Ex: We are getting updates for our mobile. It is a patching.


Now, Let’s practically starts with Patching on Linux machine.


Step 1: Download the patch from red hat website

Step 2 : Keep patch in specified location and give its path in yum file.

Step 3 : Check the pre-checks.


Check Redhat Version and Kernel Version


Command: cat /etc/redhat-release [Redhat Version]

Command : uname -a  [Kernel Version]


Step 4 : Hit the below command.


Command : yum update


Make Sure, you have configured yum repository..


Step 5 : Now, Reboot your system. If your system is not rebooted, it will not reflect new kernel version. So, make sure you reboot the system.


Step 6 : Now do post-checks.

Command : cat /etc/redhat-release [Redhat Version]

Command : uname -a  [Kernel Version]

Command : uptime [To check , from how many time server is Up and Running]

Command : yum history [To see history of previous yum activities]


So, above are the step by step procedure of patching linux server.


Suppose, if you face any issue or you have found any compatibility issue. Then you can also downgrade the patch using below command.


First do, yum history and take ID.

Then run,

Command : yum history undo <ID>


Or, if you want to downgrade a specific package. Then, command would use,


Command : yum downgrade pkg_name

For Example : yum downgrade httpd-


Do let me know, how you find the blog. Was it helpful to you ? So, if you like the blog. Do subscribe to get notified…!!!



Thank You !
Happy Learning !!!
If you have doubt or queries, you can definetely comment us or can mail us on [email protected]

If you have any Recommendation for future blog, You can email us on [email protected]

Top Searches :

1.      Top Linux Commands
2.      Introduction to linux.
3.      Websphere hack
4.      My Story – Jboss Hardening
5.      Installation and configuration of Apache 2.2 on Linux
  1. DB Auto Re-connect.
  2. Redirection in Jboss.
  3. SSL Implementation in Jboss
  4. Best SSL Guide.
  5. Types of SSL.
  6. Best Jboss Server Security Guide.
  7. Introduction to hardening in Middleware.
  8. Hardening In Jboss EAP 5.1
  9. Enable TLS1.2 in Jboss EAP 7





4 thoughts on “Best Patching in Linux & Rollback Guide

Leave a Reply

%d bloggers like this: