Patching/upgrade Linux from 6.2 to 6.8

Patching/upgrade Linux from 6.2 to 6.8

Before doing any patching/upgrade Linux from 6.2 to 6.8, keep these points in mind.

Pre-requisites
Recommendations

Patching is recommended to fix security vulnerability and other bugs can improve system performance.
Pre-requisites:
Connectivity with Yum-Repositories ( yum repolist)
Enough free space on /var & /usr

Recommendation:
Test the patch on test servers first.
Validate the patch is compatible with the application or the DB on that system
Take a snapshot before the patch

Process:
1. Check the kernel version (uname –a)

How to check the Kernel Version?
How to check the Kernel Version?

Make a note, the kernel is ending with .573

2.Check the OS release ( cat /etc/*-release)

How to check the Linux OS Release
Linux OS Release

Make a note, its release 6.5.

3. Take a snapshot (AWS- EBS snapshot)

4. Check the repository connectivity ( yum repolist)

Linux Repository connectivity
Linux Repository connectivity

Make a note of the repositories, because the updates would be downloaded from these repositories.

 

5. Now to start patching ( yum update)

How to start Linux patching(yum update)

Make a note of all the lists, these would be new updates, keep an eye on kernel version as .642, which would be new updated kernel from the current kernel of .573

6. If by any chance if you want to exclude some update,

use –x or –exclude command.

Eg: you don`t want to update/upgrade Apache (httpd)

Yum update –x httpd or yum update –exclude httpd

7. The patching process includes Update, Cleanups, Verifying.

8. After the update, it will output the updated kernel on screen.

Output of updated Kernel in Linux

9. Verify the new kernel ( rpm –qa | grep kernel )

How to verify the new kernel in Linux

10. Reboot the server to boot from the new updated kernel & check the release version.

Check the release version in Linux

Note the release is updated from Cent OS 6.2 to 6.8

If you need more assistance contact LIA Infraservices.

 

Leave a Reply

Close Menu