One of the best things about Linux is that we can upgrade between versions with almost no problems. Of course, on CentOS it is also possible to do this. And it’s worth doing because CentOS 8.2 is available and loaded with new features from Red Hat Enterprise Linux. In this post, we will explain how to upgrade from CentOS 8.1 to CentOS 8.2
Why upgrade?
Constantly updating a Linux distribution is a guarantee that you will always be safe. This security is provided by the various patches and updates of critical packages that are released from time to time.
In this sense, CentOS is mostly used as the operating system for many servers. These servers are in charge of being the center of many networks where a lot of information circulates. It is therefore important that security policies are up to date.
So let’s do it.
Upgrade from CentOS 8.1 to CentOS 8.2
To update a Linux operating system, you need to be a root user. So, open a terminal and become a root user.
:~$ su
Next, check out the version of CentOS 8 you’re running.
:~# cat /etc/centos-release
And you’ll have a screen output like the one below:
CentOS Linux release 8.1.1911 (Core)
And it’s also a good idea to check the Kernel version. To do this, execute this other command:
:~# uname -r
In my case, this is the screen output I got:
4.18.0-147.8.1.el8_1.x86_64
Now all you have to do is make a general system update using dnf.
:~# dnf update
Once the whole process is over, reboot the system.
:~# reboot
When the system boots, become root again and check the system version:
:~# cat /etc/centos-release
This is the screen output:
CentOS Linux release 8.2.2004 (Core)
And also check the kernel:
:~# uname -r
And you will get a screen output similar to this:
4.18.0-193.6.3.el8_2.x86_64
So, this is it. You now have CentOS 8.2 in your system perfectly working and ready.
Enjoy it.
Please share this post, join our Telegram Channel, and buy us a coffee.
If only it was that easy. Just tried this on a test server, a dell r710. with Centos 8.1 installed. after reboot …. Well it didn’t boot.
[0.000000]ACPI: SPCR: Unexpected SPCR access Width. Defaulting to byte size
[2.066583] MODSIGN: Couldn’t get UEFI db list
[2.068206] Couldn’t get size 0x80000000000000000000e
Warning: /dev/cl/root does not exist
Warning: /dev/cl/swap does not exist
Warning: /dev/mapper/cl-root does not exist
I ran into similar issue as well. It ended up into emergency mode. How did you fix this?