How To Update CentOS 7.0/7.1/7.2/7.3/7.4/7.5 to CentOS 7.6


CentOS has released its major release of CentOS 7.6 on 3rd December 2018, a month later the release of RHEL 7.6. Since from the day of release, you might be looking for upgrading the current version to latest CentOS release.

This post is mainly focusing on upgrading the previous version of CentOS 7.x to the latest version (Centos 7.6 at the time writing). Before going to update, let’s take a look at the main changes in the latest version.

Major changes

  1. CentOS can report bugs directly to via new abrt release.
  2. OpenJDK 11 is now available
  3. pNFS SCSI is no longer a Technology Preview.

See CentOS 7.6 release note for more information.

Before performing the OS upgrade, it is recommended to take a backup of important files to secure location.

Update CentOS 7.0/7.1/7.2/7.3/7.4/7.5 to CentOS 7.6

Check the current version of your release.

cat /etc/redhat-release


CentOS Linux release 7.5.1804 (Core)

From the above, you can see that my machine is running CentOS 7.5.

Now, let’s look at what are the updates available for your system.

yum check-update


The following are the updates available for my machine.

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * updates:

GeoIP.x86_64                                               1.5.0-13.el7                             base
NetworkManager.x86_64                                      1:1.12.0-8.el7_6                         updates
NetworkManager-adsl.x86_64                                 1:1.12.0-8.el7_6                         updates
NetworkManager-glib.x86_64                                 1:1.12.0-8.el7_6                         updates
NetworkManager-libnm.x86_64                                1:1.12.0-8.el7_6                         updates
NetworkManager-ppp.x86_64                                  1:1.12.0-8.el7_6                         updates
NetworkManager-team.x86_64                                 1:1.12.0-8.el7_6                         updates

.     .     .
.     .     .

zenity.x86_64                                              3.28.1-1.el7                             base
zlib.x86_64                                                1.2.7-18.el7                             base
Obsoleting Packages
gnome-dictionary.x86_64                                    3.26.1-2.el7                             base
    gnome-dictionary-libs.x86_64                           3.20.0-1.el7                             @anaconda
gnome-shell.x86_64                                         3.28.3-6.el7                             base
    python2-caribou.noarch                                 0.4.21-1.el7                             @anaconda
gnome-shell.x86_64                                         3.28.3-6.el7                             base
    caribou-gtk3-module.x86_64                             0.4.21-1.el7                             @anaconda
gnome-shell.x86_64                                         3.28.3-6.el7                             base
    caribou-gtk2-module.x86_64                             0.4.21-1.el7                             @anaconda
gnome-shell.x86_64                                         3.28.3-6.el7                             base
    caribou.x86_64                                         0.4.21-1.el7                             @anaconda
gnome-tweak-tool.noarch                                    3.28.1-2.el7                             base
    gnome-tweak-tool.noarch                                3.22.0-2.el7_5                           @updates
grub2.x86_64                                               1:2.02-0.76.el7.centos                   base
    grub2.x86_64                                           1:2.02-0.65.el7.centos.2                 @base
grub2-tools.x86_64                                         1:2.02-0.76.el7.centos                   base
    grub2-tools.x86_64                                     1:2.02-0.65.el7.centos.2                 @base
grub2-tools-extra.x86_64                                   1:2.02-0.76.el7.centos                   base
    grub2-tools.x86_64                                     1:2.02-0.65.el7.centos.2                 @base
grub2-tools-minimal.x86_64                                 1:2.02-0.76.el7.centos                   base
    grub2-tools.x86_64                                     1:2.02-0.65.el7.centos.2                 @base
libwayland-egl.x86_64                                      1.15.0-1.el7                             base
    mesa-libwayland-egl.x86_64                             17.2.3-8.20171019.el7                    @base
python2-pyatspi.noarch                                     2.26.0-3.el7                             base
    pyatspi.noarch                                         2.20.3-1.el7                             @anaconda

If you are satisfied with the updates, let’s issue the following command to install the same.

yum update

You will get the package details along with the download size, and you need to press Y and Enter to begin the update.

 mpg123-libs                                  x86_64    1.25.6-1.el7                        base       197 k
 ndctl                                        x86_64    62-1.el7                            base       122 k
 ndctl-libs                                   x86_64    62-1.el7                            base        61 k
 python2-blockdev                             x86_64    2.18-3.el7                          base        60 k
 python2-futures                              noarch    3.1.1-5.el7                         base        29 k
 python2-subprocess32                         x86_64    3.2.6-13.el7                        base        47 k
 shim-x64                                     x86_64    15-1.el7.centos                     base       659 k

Transaction Summary
Install   11 Packages (+29 Dependent packages)
Upgrade  573 Packages

Total size: 727 M
Total download size: 511 M
Is this ok [y/d/N]: Y  <-- Press Y
Downloading packages:
No Presto metadata available for base
updates/7/x86_64/prestodelta                                                          | 182 kB  00:00:00
Delta RPMs reduced 34 M of updates to 16 M (53% saved)
(1/613): cronie-1.4.11-19.el7_1.4.11-20.el7_6.x86_64.drpm                             |  60 kB  00:00:00
(2/613): gdm-                                 | 327 kB  00:00:01
(3/613): device-mapper-libs-1.02.146-4.el7_1.02.149-10.el7_6.2.x86_64.drpm            | 208 kB  00:00:01
(4/613): NetworkManager-libnm-1.10.2-16.el7_5_1.12.0-8.el7_6.x86_64.drpm              | 628 kB  00:00:01
(5/613): NetworkManager-glib-1.10.2-16.el7_5_1.12.0-8.el7_6.x86_64.drpm               | 465 kB  00:00:01
(6/613): ipset-libs-6.29-1.el7_6.38-3.el7_6.x86_64.drpm                               |  36 kB  00:00:00
(7/613): gnome-session-xsession-3.26.1-11.el7_3.28.1-6.el7.x86_64.drpm                | 4.7 kB  00:00:00

Once the packages are downloaded, the installer will automatically start installing it.

You may need to accept the GPG signing key if it prompts.

    yum-utils.noarch 0:1.1.31-50.el7
  zenity.x86_64 0:3.28.1-1.el7
  zlib.x86_64 0:1.2.7-18.el7

  caribou.x86_64 0:0.4.21-1.el7                     caribou-gtk2-module.x86_64 0:0.4.21-1.el7
  caribou-gtk3-module.x86_64 0:0.4.21-1.el7         gnome-dictionary-libs.x86_64 0:3.20.0-1.el7
  gnome-tweak-tool.noarch 0:3.22.0-2.el7_5          grub2.x86_64 1:2.02-0.65.el7.centos.2
  grub2-tools.x86_64 1:2.02-0.65.el7.centos.2       mesa-libwayland-egl.x86_64 0:17.2.3-8.20171019.el7
  pyatspi.noarch 0:2.20.3-1.el7                     python2-caribou.noarch 0:0.4.21-1.el7


Once the packages are installed, you can go ahead and reboot your machine

If the system doesn’t boot with the new kernel, then consider booting to old kernel and then reinstall the newly installed kernel.

Now, verify the CentOS version.

cat /etc/redhat-release


CentOS Linux release 7.6.1810 (Core)

That’s All.

You might also like