CentOS without kernel update

For my servers I prefer to use the CentOS as operating system. It is reliable, professional and modern Linux distribution which is aimed to the server platform usage.

Periodically appear the task to update the packages inside. The system package manager, which calls Yum, allow to do it easily.

The good and reliable practice for updates is do it separately from kernel. Let’s divide it into three stages:
1. Refresh the local package database;
2. Update all packages without kernel;
3. Update the kernel itself and reboot your server. Let’s take look on this in more detail.

The first command (as root) renew the local database and shows us the necessary programs and components requiring the updates:

root@server:~# yum check-update

The second command will update all packages without kernel modules:

root@server:~# yum -y -x 'kernel*' update

Check out if all is working on your system. Then the third command will update the kernel itself if new version exist:

root@server:~# yum -y update

Don’t forget to leave a comment below. Thank YOU.

comments powered by Disqus