Updating Your CentOS with yum

Updating CentOS 7 with yum

Keeping our system up to date with the latest versions of the OS and its patches as well as the installed applications is considered a good and healthy practice, those of you who comes from MS Windows are for sure familiar with “Windows Update“, well in the Linux world we have to do this manually, but fortunately we can lean on “yum“.

Windows update vs CentOS Linux update
Updating CentOS 7 with yum

How to update Centos 7

To perform a full system update including OS and patches, and bring them to the latest versions available, you can use the following command:

yum -y update

The “–y” tells the system to say “yes” to any prompts that may ask for approval

Update completed list

Do you think would be useful to know what was updated? The only way I found was to log the output and include it below.

[root@centos7 ~]# yum -y update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ufam.edu.br
 * extras: mirror.ufscar.br
 * updates: mirror.ufscar.br
Resolving Dependencies
--> Running transaction check
---> Package NetworkManager.x86_64 1:1.18.0-5.el7 will be updated
---> Package NetworkManager.x86_64 1:1.18.0-5.el7_7.1 will be an update
---> Package NetworkManager-libnm.x86_64 1:1.18.0-5.el7 will be updated
---> Package NetworkManager-libnm.x86_64 1:1.18.0-5.el7_7.1 will be an update
---> Package NetworkManager-team.x86_64 1:1.18.0-5.el7 will be updated
---> Package NetworkManager-team.x86_64 1:1.18.0-5.el7_7.1 will be an update
---> Package NetworkManager-tui.x86_64 1:1.18.0-5.el7 will be updated
---> Package NetworkManager-tui.x86_64 1:1.18.0-5.el7_7.1 will be an update
---> Package NetworkManager-wifi.x86_64 1:1.18.0-5.el7 will be updated
---> Package NetworkManager-wifi.x86_64 1:1.18.0-5.el7_7.1 will be an update
---> Package binutils.x86_64 0:2.27-41.base.el7 will be updated
---> Package binutils.x86_64 0:2.27-41.base.el7_7.1 will be an update
---> Package ca-certificates.noarch 0:2018.2.22-70.0.el7_5 will be updated
---> Package ca-certificates.noarch 0:2019.2.32-76.el7_7 will be an update
---> Package curl.x86_64 0:7.29.0-54.el7 will be updated
---> Package curl.x86_64 0:7.29.0-54.el7_7.1 will be an update
---> Package device-mapper.x86_64 7:1.02.158-2.el7 will be updated
---> Package device-mapper.x86_64 7:1.02.158-2.el7_7.2 will be an update
---> Package device-mapper-event.x86_64 7:1.02.158-2.el7 will be updated
---> Package device-mapper-event.x86_64 7:1.02.158-2.el7_7.2 will be an update
---> Package device-mapper-event-libs.x86_64 7:1.02.158-2.el7 will be updated
---> Package device-mapper-event-libs.x86_64 7:1.02.158-2.el7_7.2 will be an update
---> Package device-mapper-libs.x86_64 7:1.02.158-2.el7 will be updated
---> Package device-mapper-libs.x86_64 7:1.02.158-2.el7_7.2 will be an update
---> Package firewalld.noarch 0:0.6.3-2.el7 will be updated
---> Package firewalld.noarch 0:0.6.3-2.el7_7.2 will be an update
---> Package firewalld-filesystem.noarch 0:0.6.3-2.el7 will be updated
---> Package firewalld-filesystem.noarch 0:0.6.3-2.el7_7.2 will be an update
---> Package hostname.x86_64 0:3.13-3.el7 will be updated
---> Package hostname.x86_64 0:3.13-3.el7_7.1 will be an update
---> Package iproute.x86_64 0:4.11.0-25.el7 will be updated
---> Package iproute.x86_64 0:4.11.0-25.el7_7.2 will be an update
---> Package kernel.x86_64 0:3.10.0-1062.9.1.el7 will be installed
---> Package kernel-tools.x86_64 0:3.10.0-1062.el7 will be updated
---> Package kernel-tools.x86_64 0:3.10.0-1062.9.1.el7 will be an update
---> Package kernel-tools-libs.x86_64 0:3.10.0-1062.el7 will be updated
---> Package kernel-tools-libs.x86_64 0:3.10.0-1062.9.1.el7 will be an update
---> Package krb5-libs.x86_64 0:1.15.1-37.el7_6 will be updated
---> Package krb5-libs.x86_64 0:1.15.1-37.el7_7.2 will be an update
---> Package libblkid.x86_64 0:2.23.2-61.el7 will be updated
---> Package libblkid.x86_64 0:2.23.2-61.el7_7.1 will be an update
---> Package libcurl.x86_64 0:7.29.0-54.el7 will be updated
---> Package libcurl.x86_64 0:7.29.0-54.el7_7.1 will be an update
---> Package libmount.x86_64 0:2.23.2-61.el7 will be updated
---> Package libmount.x86_64 0:2.23.2-61.el7_7.1 will be an update
---> Package libsmartcols.x86_64 0:2.23.2-61.el7 will be updated
---> Package libsmartcols.x86_64 0:2.23.2-61.el7_7.1 will be an update
---> Package libuuid.x86_64 0:2.23.2-61.el7 will be updated
---> Package libuuid.x86_64 0:2.23.2-61.el7_7.1 will be an update
---> Package lvm2.x86_64 7:2.02.185-2.el7 will be updated
---> Package lvm2.x86_64 7:2.02.185-2.el7_7.2 will be an update
---> Package lvm2-libs.x86_64 7:2.02.185-2.el7 will be updated
---> Package lvm2-libs.x86_64 7:2.02.185-2.el7_7.2 will be an update
---> Package microcode_ctl.x86_64 2:2.1-53.el7 will be updated
---> Package microcode_ctl.x86_64 2:2.1-53.7.el7_7 will be an update
---> Package nss.x86_64 0:3.44.0-4.el7 will be updated
---> Package nss.x86_64 0:3.44.0-7.el7_7 will be an update
---> Package nss-softokn.x86_64 0:3.44.0-5.el7 will be updated
---> Package nss-softokn.x86_64 0:3.44.0-8.el7_7 will be an update
---> Package nss-softokn-freebl.x86_64 0:3.44.0-5.el7 will be updated
---> Package nss-softokn-freebl.x86_64 0:3.44.0-8.el7_7 will be an update
---> Package nss-sysinit.x86_64 0:3.44.0-4.el7 will be updated
---> Package nss-sysinit.x86_64 0:3.44.0-7.el7_7 will be an update
---> Package nss-tools.x86_64 0:3.44.0-4.el7 will be updated
---> Package nss-tools.x86_64 0:3.44.0-7.el7_7 will be an update
---> Package nss-util.x86_64 0:3.44.0-3.el7 will be updated
---> Package nss-util.x86_64 0:3.44.0-4.el7_7 will be an update
---> Package numactl-libs.x86_64 0:2.0.12-3.el7 will be updated
---> Package numactl-libs.x86_64 0:2.0.12-3.el7_7.1 will be an update
---> Package polkit.x86_64 0:0.112-22.el7 will be updated
---> Package polkit.x86_64 0:0.112-22.el7_7.1 will be an update
---> Package procps-ng.x86_64 0:3.3.10-26.el7 will be updated
---> Package procps-ng.x86_64 0:3.3.10-26.el7_7.1 will be an update
---> Package python-firewall.noarch 0:0.6.3-2.el7 will be updated
---> Package python-firewall.noarch 0:0.6.3-2.el7_7.2 will be an update
---> Package python-perf.x86_64 0:3.10.0-1062.el7 will be updated
---> Package python-perf.x86_64 0:3.10.0-1062.9.1.el7 will be an update
---> Package rsyslog.x86_64 0:8.24.0-38.el7 will be updated
---> Package rsyslog.x86_64 0:8.24.0-41.el7_7.2 will be an update
---> Package selinux-policy.noarch 0:3.13.1-252.el7 will be updated
---> Package selinux-policy.noarch 0:3.13.1-252.el7_7.6 will be an update
---> Package selinux-policy-targeted.noarch 0:3.13.1-252.el7 will be updated
---> Package selinux-policy-targeted.noarch 0:3.13.1-252.el7_7.6 will be an update
---> Package sudo.x86_64 0:1.8.23-4.el7 will be updated
---> Package sudo.x86_64 0:1.8.23-4.el7_7.1 will be an update
---> Package systemd.x86_64 0:219-67.el7 will be updated
---> Package systemd.x86_64 0:219-67.el7_7.2 will be an update
---> Package systemd-libs.x86_64 0:219-67.el7 will be updated
---> Package systemd-libs.x86_64 0:219-67.el7_7.2 will be an update
---> Package systemd-sysv.x86_64 0:219-67.el7 will be updated
---> Package systemd-sysv.x86_64 0:219-67.el7_7.2 will be an update
---> Package tuned.noarch 0:2.11.0-5.el7 will be updated
---> Package tuned.noarch 0:2.11.0-5.el7_7.1 will be an update
---> Package tzdata.noarch 0:2019b-1.el7 will be updated
---> Package tzdata.noarch 0:2019c-1.el7 will be an update
---> Package util-linux.x86_64 0:2.23.2-61.el7 will be updated
---> Package util-linux.x86_64 0:2.23.2-61.el7_7.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================
 Package                          Arch           Version                        Repository       Size
======================================================================================================
Installing:
 kernel                           x86_64         3.10.0-1062.9.1.el7            updates          50 M
Updating:
 NetworkManager                   x86_64         1:1.18.0-5.el7_7.1             updates         1.9 M
 NetworkManager-libnm             x86_64         1:1.18.0-5.el7_7.1             updates         1.7 M
 NetworkManager-team              x86_64         1:1.18.0-5.el7_7.1             updates         163 k
 NetworkManager-tui               x86_64         1:1.18.0-5.el7_7.1             updates         326 k
 NetworkManager-wifi              x86_64         1:1.18.0-5.el7_7.1             updates         200 k
 binutils                         x86_64         2.27-41.base.el7_7.1           updates         5.9 M
 ca-certificates                  noarch         2019.2.32-76.el7_7             updates         399 k
 curl                             x86_64         7.29.0-54.el7_7.1              updates         270 k
 device-mapper                    x86_64         7:1.02.158-2.el7_7.2           updates         294 k
 device-mapper-event              x86_64         7:1.02.158-2.el7_7.2           updates         190 k
 device-mapper-event-libs         x86_64         7:1.02.158-2.el7_7.2           updates         189 k
 device-mapper-libs               x86_64         7:1.02.158-2.el7_7.2           updates         322 k
 firewalld                        noarch         0.6.3-2.el7_7.2                updates         441 k
 firewalld-filesystem             noarch         0.6.3-2.el7_7.2                updates          50 k
 hostname                         x86_64         3.13-3.el7_7.1                 updates          17 k
 iproute                          x86_64         4.11.0-25.el7_7.2              updates         803 k
 kernel-tools                     x86_64         3.10.0-1062.9.1.el7            updates         7.8 M
 kernel-tools-libs                x86_64         3.10.0-1062.9.1.el7            updates         7.8 M
 krb5-libs                        x86_64         1.15.1-37.el7_7.2              updates         805 k
 libblkid                         x86_64         2.23.2-61.el7_7.1              updates         181 k
 libcurl                          x86_64         7.29.0-54.el7_7.1              updates         223 k
 libmount                         x86_64         2.23.2-61.el7_7.1              updates         183 k
 libsmartcols                     x86_64         2.23.2-61.el7_7.1              updates         141 k
 libuuid                          x86_64         2.23.2-61.el7_7.1              updates          83 k
 lvm2                             x86_64         7:2.02.185-2.el7_7.2           updates         1.3 M
 lvm2-libs                        x86_64         7:2.02.185-2.el7_7.2           updates         1.1 M
 microcode_ctl                    x86_64         2:2.1-53.7.el7_7               updates         2.5 M
 nss                              x86_64         3.44.0-7.el7_7                 updates         854 k
 nss-softokn                      x86_64         3.44.0-8.el7_7                 updates         330 k
 nss-softokn-freebl               x86_64         3.44.0-8.el7_7                 updates         224 k
 nss-sysinit                      x86_64         3.44.0-7.el7_7                 updates          65 k
 nss-tools                        x86_64         3.44.0-7.el7_7                 updates         528 k
 nss-util                         x86_64         3.44.0-4.el7_7                 updates          79 k
 numactl-libs                     x86_64         2.0.12-3.el7_7.1               updates          30 k
 polkit                           x86_64         0.112-22.el7_7.1               updates         170 k
 procps-ng                        x86_64         3.3.10-26.el7_7.1              updates         291 k
 python-firewall                  noarch         0.6.3-2.el7_7.2                updates         352 k
 python-perf                      x86_64         3.10.0-1062.9.1.el7            updates         7.8 M
 rsyslog                          x86_64         8.24.0-41.el7_7.2              updates         616 k
 selinux-policy                   noarch         3.13.1-252.el7_7.6             updates         492 k
 selinux-policy-targeted          noarch         3.13.1-252.el7_7.6             updates         7.0 M
 sudo                             x86_64         1.8.23-4.el7_7.1               updates         841 k
 systemd                          x86_64         219-67.el7_7.2                 updates         5.1 M
 systemd-libs                     x86_64         219-67.el7_7.2                 updates         411 k
 systemd-sysv                     x86_64         219-67.el7_7.2                 updates          88 k
 tuned                            noarch         2.11.0-5.el7_7.1               updates         268 k
 tzdata                           noarch         2019c-1.el7                    updates         493 k
 util-linux                       x86_64         2.23.2-61.el7_7.1              updates         2.0 M

Transaction Summary
======================================================================================================
Install   1 Package
Upgrade  48 Packages

Total download size: 113 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/updates/packages/NetworkManager-1.18.0-5.el7_7.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for NetworkManager-1.18.0-5.el7_7.1.x86_64.rpm is not installed
(1/49): NetworkManager-1.18.0-5.el7_7.1.x86_64.rpm                             | 1.9 MB  00:00:16     
(2/49): NetworkManager-team-1.18.0-5.el7_7.1.x86_64.rpm                        | 163 kB  00:00:00     
(3/49): NetworkManager-tui-1.18.0-5.el7_7.1.x86_64.rpm                         | 326 kB  00:00:00     
(4/49): NetworkManager-wifi-1.18.0-5.el7_7.1.x86_64.rpm                        | 200 kB  00:00:00     
(5/49): NetworkManager-libnm-1.18.0-5.el7_7.1.x86_64.rpm                       | 1.7 MB  00:00:16     
(6/49): ca-certificates-2019.2.32-76.el7_7.noarch.rpm                          | 399 kB  00:00:00     
(7/49): curl-7.29.0-54.el7_7.1.x86_64.rpm                                      | 270 kB  00:00:00     
(8/49): device-mapper-1.02.158-2.el7_7.2.x86_64.rpm                            | 294 kB  00:00:00     
(9/49): device-mapper-event-1.02.158-2.el7_7.2.x86_64.rpm                      | 190 kB  00:00:00     
(10/49): device-mapper-event-libs-1.02.158-2.el7_7.2.x86_64.rpm                | 189 kB  00:00:00     
(11/49): device-mapper-libs-1.02.158-2.el7_7.2.x86_64.rpm                      | 322 kB  00:00:00     
(12/49): binutils-2.27-41.base.el7_7.1.x86_64.rpm                              | 5.9 MB  00:00:01     
(13/49): firewalld-0.6.3-2.el7_7.2.noarch.rpm                                  | 441 kB  00:00:00     
(14/49): hostname-3.13-3.el7_7.1.x86_64.rpm                                    |  17 kB  00:00:00     
(15/49): firewalld-filesystem-0.6.3-2.el7_7.2.noarch.rpm                       |  50 kB  00:00:00     
(16/49): iproute-4.11.0-25.el7_7.2.x86_64.rpm                                  | 803 kB  00:00:00     
(17/49): kernel-tools-3.10.0-1062.9.1.el7.x86_64.rpm                           | 7.8 MB  00:00:01     
(18/49): kernel-tools-libs-3.10.0-1062.9.1.el7.x86_64.rpm                      | 7.8 MB  00:00:01     
(19/49): krb5-libs-1.15.1-37.el7_7.2.x86_64.rpm                                | 805 kB  00:00:00     
(20/49): libblkid-2.23.2-61.el7_7.1.x86_64.rpm                                 | 181 kB  00:00:00     
(21/49): libcurl-7.29.0-54.el7_7.1.x86_64.rpm                                  | 223 kB  00:00:00     
(22/49): libmount-2.23.2-61.el7_7.1.x86_64.rpm                                 | 183 kB  00:00:00     
(23/49): libsmartcols-2.23.2-61.el7_7.1.x86_64.rpm                             | 141 kB  00:00:00     
(24/49): libuuid-2.23.2-61.el7_7.1.x86_64.rpm                                  |  83 kB  00:00:00     
(25/49): lvm2-2.02.185-2.el7_7.2.x86_64.rpm                                    | 1.3 MB  00:00:00     
(26/49): lvm2-libs-2.02.185-2.el7_7.2.x86_64.rpm                               | 1.1 MB  00:00:00     
(27/49): microcode_ctl-2.1-53.7.el7_7.x86_64.rpm                               | 2.5 MB  00:00:00     
(28/49): nss-3.44.0-7.el7_7.x86_64.rpm                                         | 854 kB  00:00:00     
(29/49): nss-softokn-3.44.0-8.el7_7.x86_64.rpm                                 | 330 kB  00:00:00     
(30/49): nss-softokn-freebl-3.44.0-8.el7_7.x86_64.rpm                          | 224 kB  00:00:00     
(31/49): nss-sysinit-3.44.0-7.el7_7.x86_64.rpm                                 |  65 kB  00:00:00     
(32/49): nss-tools-3.44.0-7.el7_7.x86_64.rpm                                   | 528 kB  00:00:00     
(33/49): nss-util-3.44.0-4.el7_7.x86_64.rpm                                    |  79 kB  00:00:00     
(34/49): numactl-libs-2.0.12-3.el7_7.1.x86_64.rpm                              |  30 kB  00:00:00     
(35/49): polkit-0.112-22.el7_7.1.x86_64.rpm                                    | 170 kB  00:00:00     
(36/49): procps-ng-3.3.10-26.el7_7.1.x86_64.rpm                                | 291 kB  00:00:00     
(37/49): python-firewall-0.6.3-2.el7_7.2.noarch.rpm                            | 352 kB  00:00:00     
(38/49): python-perf-3.10.0-1062.9.1.el7.x86_64.rpm                            | 7.8 MB  00:00:01     
(39/49): rsyslog-8.24.0-41.el7_7.2.x86_64.rpm                                  | 616 kB  00:00:00     
(40/49): selinux-policy-3.13.1-252.el7_7.6.noarch.rpm                          | 492 kB  00:00:00     
(41/49): selinux-policy-targeted-3.13.1-252.el7_7.6.noarch.rpm                 | 7.0 MB  00:00:01     
(42/49): sudo-1.8.23-4.el7_7.1.x86_64.rpm                                      | 841 kB  00:00:00     
(43/49): kernel-3.10.0-1062.9.1.el7.x86_64.rpm                                 |  50 MB  00:00:12     
(44/49): systemd-219-67.el7_7.2.x86_64.rpm                                     | 5.1 MB  00:00:01     
(45/49): systemd-sysv-219-67.el7_7.2.x86_64.rpm                                |  88 kB  00:00:00     
(46/49): tuned-2.11.0-5.el7_7.1.noarch.rpm                                     | 268 kB  00:00:00     
(47/49): systemd-libs-219-67.el7_7.2.x86_64.rpm                                | 411 kB  00:00:00     
(48/49): tzdata-2019c-1.el7.noarch.rpm                                         | 493 kB  00:00:00     
(49/49): util-linux-2.23.2-61.el7_7.1.x86_64.rpm                               | 2.0 MB  00:00:00     
------------------------------------------------------------------------------------------------------
Total                                                                 3.7 MB/s | 113 MB  00:00:30     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-7.1908.0.el7.centos.x86_64 (@anaconda)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : systemd-libs-219-67.el7_7.2.x86_64                                                1/97 
  Updating   : nss-util-3.44.0-4.el7_7.x86_64                                                    2/97 
  Updating   : libuuid-2.23.2-61.el7_7.1.x86_64                                                  3/97 
  Updating   : libblkid-2.23.2-61.el7_7.1.x86_64                                                 4/97 
  Updating   : libmount-2.23.2-61.el7_7.1.x86_64                                                 5/97 
  Updating   : nss-softokn-freebl-3.44.0-8.el7_7.x86_64                                          6/97 
  Updating   : nss-softokn-3.44.0-8.el7_7.x86_64                                                 7/97 
  Updating   : nss-sysinit-3.44.0-7.el7_7.x86_64                                                 8/97 
  Updating   : nss-3.44.0-7.el7_7.x86_64                                                         9/97 
  Updating   : 1:NetworkManager-libnm-1.18.0-5.el7_7.1.x86_64                                   10/97 
  Updating   : python-firewall-0.6.3-2.el7_7.2.noarch                                           11/97 
  Updating   : libsmartcols-2.23.2-61.el7_7.1.x86_64                                            12/97 
  Updating   : util-linux-2.23.2-61.el7_7.1.x86_64                                              13/97 
  Updating   : krb5-libs-1.15.1-37.el7_7.2.x86_64                                               14/97 
  Updating   : libcurl-7.29.0-54.el7_7.1.x86_64                                                 15/97 
  Updating   : systemd-219-67.el7_7.2.x86_64                                                    16/97 
  Updating   : 7:device-mapper-libs-1.02.158-2.el7_7.2.x86_64                                   17/97 
  Updating   : 7:device-mapper-1.02.158-2.el7_7.2.x86_64                                        18/97 
  Updating   : 7:device-mapper-event-libs-1.02.158-2.el7_7.2.x86_64                             19/97 
  Updating   : polkit-0.112-22.el7_7.1.x86_64                                                   20/97 
  Updating   : 1:NetworkManager-1.18.0-5.el7_7.1.x86_64                                         21/97 
  Updating   : 7:device-mapper-event-1.02.158-2.el7_7.2.x86_64                                  22/97 
  Updating   : 7:lvm2-libs-2.02.185-2.el7_7.2.x86_64                                            23/97 
  Updating   : selinux-policy-3.13.1-252.el7_7.6.noarch                                         24/97 
  Updating   : kernel-tools-libs-3.10.0-1062.9.1.el7.x86_64                                     25/97 
  Updating   : python-perf-3.10.0-1062.9.1.el7.x86_64                                           26/97 
  Updating   : firewalld-filesystem-0.6.3-2.el7_7.2.noarch                                      27/97 
  Updating   : firewalld-0.6.3-2.el7_7.2.noarch                                                 28/97 
  Updating   : tuned-2.11.0-5.el7_7.1.noarch                                                    29/97 
  Updating   : kernel-tools-3.10.0-1062.9.1.el7.x86_64                                          30/97 
  Updating   : selinux-policy-targeted-3.13.1-252.el7_7.6.noarch                                31/97 
  Updating   : 7:lvm2-2.02.185-2.el7_7.2.x86_64                                                 32/97 
  Updating   : 1:NetworkManager-tui-1.18.0-5.el7_7.1.x86_64                                     33/97 
  Updating   : 1:NetworkManager-team-1.18.0-5.el7_7.1.x86_64                                    34/97 
  Updating   : 1:NetworkManager-wifi-1.18.0-5.el7_7.1.x86_64                                    35/97 
  Updating   : rsyslog-8.24.0-41.el7_7.2.x86_64                                                 36/97 
  Updating   : systemd-sysv-219-67.el7_7.2.x86_64                                               37/97 
  Updating   : 2:microcode_ctl-2.1-53.7.el7_7.x86_64                                            38/97 
  Updating   : curl-7.29.0-54.el7_7.1.x86_64                                                    39/97 
  Updating   : nss-tools-3.44.0-7.el7_7.x86_64                                                  40/97 
  Updating   : procps-ng-3.3.10-26.el7_7.1.x86_64                                               41/97 
  Installing : kernel-3.10.0-1062.9.1.el7.x86_64                                                42/97 
  Updating   : binutils-2.27-41.base.el7_7.1.x86_64                                             43/97 
  Updating   : hostname-3.13-3.el7_7.1.x86_64                                                   44/97 
  Updating   : numactl-libs-2.0.12-3.el7_7.1.x86_64                                             45/97 
  Updating   : iproute-4.11.0-25.el7_7.2.x86_64                                                 46/97 
  Updating   : ca-certificates-2019.2.32-76.el7_7.noarch                                        47/97 
  Updating   : sudo-1.8.23-4.el7_7.1.x86_64                                                     48/97 
  Updating   : tzdata-2019c-1.el7.noarch                                                        49/97 
  Cleanup    : tuned-2.11.0-5.el7.noarch                                                        50/97 
  Cleanup    : firewalld-0.6.3-2.el7.noarch                                                     51/97 
  Cleanup    : 2:microcode_ctl-2.1-53.el7.x86_64                                                52/97 
  Cleanup    : selinux-policy-targeted-3.13.1-252.el7.noarch                                    53/97 
  Cleanup    : systemd-sysv-219-67.el7.x86_64                                                   54/97 
  Cleanup    : selinux-policy-3.13.1-252.el7.noarch                                             55/97 
  Cleanup    : firewalld-filesystem-0.6.3-2.el7.noarch                                          56/97 
  Cleanup    : python-firewall-0.6.3-2.el7.noarch                                               57/97 
  Cleanup    : ca-certificates-2018.2.22-70.0.el7_5.noarch                                      58/97 
  Cleanup    : tzdata-2019b-1.el7.noarch                                                        59/97 
  Cleanup    : 7:lvm2-2.02.185-2.el7.x86_64                                                     60/97 
  Cleanup    : 1:NetworkManager-tui-1.18.0-5.el7.x86_64                                         61/97 
  Cleanup    : 7:lvm2-libs-2.02.185-2.el7.x86_64                                                62/97 
  Cleanup    : nss-tools-3.44.0-4.el7.x86_64                                                    63/97 
  Cleanup    : 7:device-mapper-event-1.02.158-2.el7.x86_64                                      64/97 
  Cleanup    : curl-7.29.0-54.el7.x86_64                                                        65/97 
  Cleanup    : rsyslog-8.24.0-38.el7.x86_64                                                     66/97 
  Cleanup    : 7:device-mapper-event-libs-1.02.158-2.el7.x86_64                                 67/97 
  Cleanup    : 7:device-mapper-1.02.158-2.el7.x86_64                                            68/97 
  Cleanup    : 7:device-mapper-libs-1.02.158-2.el7.x86_64                                       69/97 
  Cleanup    : util-linux-2.23.2-61.el7.x86_64                                                  70/97 
  Cleanup    : procps-ng-3.3.10-26.el7.x86_64                                                   71/97 
  Cleanup    : 1:NetworkManager-wifi-1.18.0-5.el7.x86_64                                        72/97 
  Cleanup    : 1:NetworkManager-team-1.18.0-5.el7.x86_64                                        73/97 
  Cleanup    : 1:NetworkManager-1.18.0-5.el7.x86_64                                             74/97 
  Cleanup    : 1:NetworkManager-libnm-1.18.0-5.el7.x86_64                                       75/97 
  Cleanup    : polkit-0.112-22.el7.x86_64                                                       76/97 
  Cleanup    : systemd-219-67.el7.x86_64                                                        77/97 
  Cleanup    : libcurl-7.29.0-54.el7.x86_64                                                     78/97 
  Cleanup    : nss-sysinit-3.44.0-4.el7.x86_64                                                  79/97 
  Cleanup    : nss-3.44.0-4.el7.x86_64                                                          80/97 
  Cleanup    : nss-softokn-3.44.0-5.el7.x86_64                                                  81/97 
  Cleanup    : libmount-2.23.2-61.el7.x86_64                                                    82/97 
  Cleanup    : libblkid-2.23.2-61.el7.x86_64                                                    83/97 
  Cleanup    : nss-softokn-freebl-3.44.0-5.el7.x86_64                                           84/97 
  Cleanup    : kernel-tools-3.10.0-1062.el7.x86_64                                              85/97 
  Cleanup    : kernel-tools-libs-3.10.0-1062.el7.x86_64                                         86/97 
  Cleanup    : nss-util-3.44.0-3.el7.x86_64                                                     87/97 
  Cleanup    : libuuid-2.23.2-61.el7.x86_64                                                     88/97 
  Cleanup    : krb5-libs-1.15.1-37.el7_6.x86_64                                                 89/97 
  Cleanup    : systemd-libs-219-67.el7.x86_64                                                   90/97 
  Cleanup    : libsmartcols-2.23.2-61.el7.x86_64                                                91/97 
  Cleanup    : python-perf-3.10.0-1062.el7.x86_64                                               92/97 
  Cleanup    : binutils-2.27-41.base.el7.x86_64                                                 93/97 
  Cleanup    : hostname-3.13-3.el7.x86_64                                                       94/97 
  Cleanup    : numactl-libs-2.0.12-3.el7.x86_64                                                 95/97 
  Cleanup    : iproute-4.11.0-25.el7.x86_64                                                     96/97 
  Cleanup    : sudo-1.8.23-4.el7.x86_64                                                         97/97 
  Verifying  : tzdata-2019c-1.el7.noarch                                                         1/97 
  Verifying  : sudo-1.8.23-4.el7_7.1.x86_64                                                      2/97 
  Verifying  : nss-3.44.0-7.el7_7.x86_64                                                         3/97 
  Verifying  : systemd-219-67.el7_7.2.x86_64                                                     4/97 
  Verifying  : rsyslog-8.24.0-41.el7_7.2.x86_64                                                  5/97 
  Verifying  : ca-certificates-2019.2.32-76.el7_7.noarch                                         6/97 
  Verifying  : tuned-2.11.0-5.el7_7.1.noarch                                                     7/97 
  Verifying  : systemd-sysv-219-67.el7_7.2.x86_64                                                8/97 
  Verifying  : util-linux-2.23.2-61.el7_7.1.x86_64                                               9/97 
  Verifying  : nss-tools-3.44.0-7.el7_7.x86_64                                                  10/97 
  Verifying  : iproute-4.11.0-25.el7_7.2.x86_64                                                 11/97 
  Verifying  : libcurl-7.29.0-54.el7_7.1.x86_64                                                 12/97 
  Verifying  : firewalld-filesystem-0.6.3-2.el7_7.2.noarch                                      13/97 
  Verifying  : 7:device-mapper-event-1.02.158-2.el7_7.2.x86_64                                  14/97 
  Verifying  : libuuid-2.23.2-61.el7_7.1.x86_64                                                 15/97 
  Verifying  : nss-sysinit-3.44.0-7.el7_7.x86_64                                                16/97 
  Verifying  : numactl-libs-2.0.12-3.el7_7.1.x86_64                                             17/97 
  Verifying  : kernel-tools-3.10.0-1062.9.1.el7.x86_64                                          18/97 
  Verifying  : nss-softokn-freebl-3.44.0-8.el7_7.x86_64                                         19/97 
  Verifying  : 1:NetworkManager-tui-1.18.0-5.el7_7.1.x86_64                                     20/97 
  Verifying  : 1:NetworkManager-team-1.18.0-5.el7_7.1.x86_64                                    21/97 
  Verifying  : systemd-libs-219-67.el7_7.2.x86_64                                               22/97 
  Verifying  : python-perf-3.10.0-1062.9.1.el7.x86_64                                           23/97 
  Verifying  : hostname-3.13-3.el7_7.1.x86_64                                                   24/97 
  Verifying  : binutils-2.27-41.base.el7_7.1.x86_64                                             25/97 
  Verifying  : selinux-policy-targeted-3.13.1-252.el7_7.6.noarch                                26/97 
  Verifying  : firewalld-0.6.3-2.el7_7.2.noarch                                                 27/97 
  Verifying  : 2:microcode_ctl-2.1-53.7.el7_7.x86_64                                            28/97 
  Verifying  : libblkid-2.23.2-61.el7_7.1.x86_64                                                29/97 
  Verifying  : 7:device-mapper-1.02.158-2.el7_7.2.x86_64                                        30/97 
  Verifying  : polkit-0.112-22.el7_7.1.x86_64                                                   31/97 
  Verifying  : kernel-3.10.0-1062.9.1.el7.x86_64                                                32/97 
  Verifying  : 1:NetworkManager-libnm-1.18.0-5.el7_7.1.x86_64                                   33/97 
  Verifying  : kernel-tools-libs-3.10.0-1062.9.1.el7.x86_64                                     34/97 
  Verifying  : selinux-policy-3.13.1-252.el7_7.6.noarch                                         35/97 
  Verifying  : 1:NetworkManager-wifi-1.18.0-5.el7_7.1.x86_64                                    36/97 
  Verifying  : 7:device-mapper-event-libs-1.02.158-2.el7_7.2.x86_64                             37/97 
  Verifying  : procps-ng-3.3.10-26.el7_7.1.x86_64                                               38/97 
  Verifying  : 7:lvm2-libs-2.02.185-2.el7_7.2.x86_64                                            39/97 
  Verifying  : krb5-libs-1.15.1-37.el7_7.2.x86_64                                               40/97 
  Verifying  : libmount-2.23.2-61.el7_7.1.x86_64                                                41/97 
  Verifying  : 7:device-mapper-libs-1.02.158-2.el7_7.2.x86_64                                   42/97 
  Verifying  : 1:NetworkManager-1.18.0-5.el7_7.1.x86_64                                         43/97 
  Verifying  : curl-7.29.0-54.el7_7.1.x86_64                                                    44/97 
  Verifying  : nss-softokn-3.44.0-8.el7_7.x86_64                                                45/97 
  Verifying  : libsmartcols-2.23.2-61.el7_7.1.x86_64                                            46/97 
  Verifying  : python-firewall-0.6.3-2.el7_7.2.noarch                                           47/97 
  Verifying  : 7:lvm2-2.02.185-2.el7_7.2.x86_64                                                 48/97 
  Verifying  : nss-util-3.44.0-4.el7_7.x86_64                                                   49/97 
  Verifying  : rsyslog-8.24.0-38.el7.x86_64                                                     50/97 
  Verifying  : 1:NetworkManager-wifi-1.18.0-5.el7.x86_64                                        51/97 
  Verifying  : selinux-policy-targeted-3.13.1-252.el7.noarch                                    52/97 
  Verifying  : procps-ng-3.3.10-26.el7.x86_64                                                   53/97 
  Verifying  : 7:lvm2-2.02.185-2.el7.x86_64                                                     54/97 
  Verifying  : polkit-0.112-22.el7.x86_64                                                       55/97 
  Verifying  : python-perf-3.10.0-1062.el7.x86_64                                               56/97 
  Verifying  : 7:device-mapper-1.02.158-2.el7.x86_64                                            57/97 
  Verifying  : firewalld-filesystem-0.6.3-2.el7.noarch                                          58/97 
  Verifying  : kernel-tools-libs-3.10.0-1062.el7.x86_64                                         59/97 
  Verifying  : util-linux-2.23.2-61.el7.x86_64                                                  60/97 
  Verifying  : 1:NetworkManager-libnm-1.18.0-5.el7.x86_64                                       61/97 
  Verifying  : nss-util-3.44.0-3.el7.x86_64                                                     62/97 
  Verifying  : systemd-219-67.el7.x86_64                                                        63/97 
  Verifying  : tuned-2.11.0-5.el7.noarch                                                        64/97 
  Verifying  : krb5-libs-1.15.1-37.el7_6.x86_64                                                 65/97 
  Verifying  : libmount-2.23.2-61.el7.x86_64                                                    66/97 
  Verifying  : nss-sysinit-3.44.0-4.el7.x86_64                                                  67/97 
  Verifying  : 1:NetworkManager-1.18.0-5.el7.x86_64                                             68/97 
  Verifying  : iproute-4.11.0-25.el7.x86_64                                                     69/97 
  Verifying  : ca-certificates-2018.2.22-70.0.el7_5.noarch                                      70/97 
  Verifying  : nss-3.44.0-4.el7.x86_64                                                          71/97 
  Verifying  : numactl-libs-2.0.12-3.el7.x86_64                                                 72/97 
  Verifying  : nss-softokn-3.44.0-5.el7.x86_64                                                  73/97 
  Verifying  : nss-tools-3.44.0-4.el7.x86_64                                                    74/97 
  Verifying  : 7:device-mapper-event-1.02.158-2.el7.x86_64                                      75/97 
  Verifying  : nss-softokn-freebl-3.44.0-5.el7.x86_64                                           76/97 
  Verifying  : firewalld-0.6.3-2.el7.noarch                                                     77/97 
  Verifying  : python-firewall-0.6.3-2.el7.noarch                                               78/97 
  Verifying  : libblkid-2.23.2-61.el7.x86_64                                                    79/97 
  Verifying  : sudo-1.8.23-4.el7.x86_64                                                         80/97 
  Verifying  : 7:lvm2-libs-2.02.185-2.el7.x86_64                                                81/97 
  Verifying  : hostname-3.13-3.el7.x86_64                                                       82/97 
  Verifying  : 1:NetworkManager-tui-1.18.0-5.el7.x86_64                                         83/97 
  Verifying  : 7:device-mapper-event-libs-1.02.158-2.el7.x86_64                                 84/97 
  Verifying  : binutils-2.27-41.base.el7.x86_64                                                 85/97 
  Verifying  : 2:microcode_ctl-2.1-53.el7.x86_64                                                86/97 
  Verifying  : 1:NetworkManager-team-1.18.0-5.el7.x86_64                                        87/97 
  Verifying  : selinux-policy-3.13.1-252.el7.noarch                                             88/97 
  Verifying  : systemd-sysv-219-67.el7.x86_64                                                   89/97 
  Verifying  : libuuid-2.23.2-61.el7.x86_64                                                     90/97 
  Verifying  : 7:device-mapper-libs-1.02.158-2.el7.x86_64                                       91/97 
  Verifying  : libcurl-7.29.0-54.el7.x86_64                                                     92/97 
  Verifying  : libsmartcols-2.23.2-61.el7.x86_64                                                93/97 
  Verifying  : curl-7.29.0-54.el7.x86_64                                                        94/97 
  Verifying  : systemd-libs-219-67.el7.x86_64                                                   95/97 
  Verifying  : tzdata-2019b-1.el7.noarch                                                        96/97 
  Verifying  : kernel-tools-3.10.0-1062.el7.x86_64                                              97/97 

Installed:
  kernel.x86_64 0:3.10.0-1062.9.1.el7                                                                 

Updated:
  NetworkManager.x86_64 1:1.18.0-5.el7_7.1                                                            
  NetworkManager-libnm.x86_64 1:1.18.0-5.el7_7.1                                                      
  NetworkManager-team.x86_64 1:1.18.0-5.el7_7.1                                                       
  NetworkManager-tui.x86_64 1:1.18.0-5.el7_7.1                                                        
  NetworkManager-wifi.x86_64 1:1.18.0-5.el7_7.1                                                       
  binutils.x86_64 0:2.27-41.base.el7_7.1                                                              
  ca-certificates.noarch 0:2019.2.32-76.el7_7                                                         
  curl.x86_64 0:7.29.0-54.el7_7.1                                                                     
  device-mapper.x86_64 7:1.02.158-2.el7_7.2                                                           
  device-mapper-event.x86_64 7:1.02.158-2.el7_7.2                                                     
  device-mapper-event-libs.x86_64 7:1.02.158-2.el7_7.2                                                
  device-mapper-libs.x86_64 7:1.02.158-2.el7_7.2                                                      
  firewalld.noarch 0:0.6.3-2.el7_7.2                                                                  
  firewalld-filesystem.noarch 0:0.6.3-2.el7_7.2                                                       
  hostname.x86_64 0:3.13-3.el7_7.1                                                                    
  iproute.x86_64 0:4.11.0-25.el7_7.2                                                                  
  kernel-tools.x86_64 0:3.10.0-1062.9.1.el7                                                           
  kernel-tools-libs.x86_64 0:3.10.0-1062.9.1.el7                                                      
  krb5-libs.x86_64 0:1.15.1-37.el7_7.2                                                                
  libblkid.x86_64 0:2.23.2-61.el7_7.1                                                                 
  libcurl.x86_64 0:7.29.0-54.el7_7.1                                                                  
  libmount.x86_64 0:2.23.2-61.el7_7.1                                                                 
  libsmartcols.x86_64 0:2.23.2-61.el7_7.1                                                             
  libuuid.x86_64 0:2.23.2-61.el7_7.1                                                                  
  lvm2.x86_64 7:2.02.185-2.el7_7.2                                                                    
  lvm2-libs.x86_64 7:2.02.185-2.el7_7.2                                                               
  microcode_ctl.x86_64 2:2.1-53.7.el7_7                                                               
  nss.x86_64 0:3.44.0-7.el7_7                                                                         
  nss-softokn.x86_64 0:3.44.0-8.el7_7                                                                 
  nss-softokn-freebl.x86_64 0:3.44.0-8.el7_7                                                          
  nss-sysinit.x86_64 0:3.44.0-7.el7_7                                                                 
  nss-tools.x86_64 0:3.44.0-7.el7_7                                                                   
  nss-util.x86_64 0:3.44.0-4.el7_7                                                                    
  numactl-libs.x86_64 0:2.0.12-3.el7_7.1                                                              
  polkit.x86_64 0:0.112-22.el7_7.1                                                                    
  procps-ng.x86_64 0:3.3.10-26.el7_7.1                                                                
  python-firewall.noarch 0:0.6.3-2.el7_7.2                                                            
  python-perf.x86_64 0:3.10.0-1062.9.1.el7                                                            
  rsyslog.x86_64 0:8.24.0-41.el7_7.2                                                                  
  selinux-policy.noarch 0:3.13.1-252.el7_7.6                                                          
  selinux-policy-targeted.noarch 0:3.13.1-252.el7_7.6                                                 
  sudo.x86_64 0:1.8.23-4.el7_7.1                                                                      
  systemd.x86_64 0:219-67.el7_7.2                                                                     
  systemd-libs.x86_64 0:219-67.el7_7.2                                                                
  systemd-sysv.x86_64 0:219-67.el7_7.2                                                                
  tuned.noarch 0:2.11.0-5.el7_7.1                                                                     
  tzdata.noarch 0:2019c-1.el7                                                                         
  util-linux.x86_64 0:2.23.2-61.el7_7.1                                                               

Complete!
[root@centos7 ~]# 
[root@centos7 ~]# 

How to check available updates

If you want to know beforehand which packages currently have updates available and hence will be updated then you can execute this command:

yum check-update

This command allows you to determine whether any updates are available for your installed packages. yum returns a list of all package updates from all repositories if any are available, just be aware that this command won’t produce any output if yum has already been run recently.

List of available updates

If you are little bit curious, you can take a look a the list returned by the above command, the image only show the firsts lines, and that’s why I did log the output of the command and paste here for you to see.

[root@centos7 ~]# yum check-update
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirror.ufam.edu.br
 * extras: mirror.ufscar.br
 * updates: mirror.ufscar.br
base                                                                                    | 3.6 kB  00:00:00     
extras                                                                                  | 2.9 kB  00:00:00     
updates                                                                                 | 2.9 kB  00:00:00     
(1/4): base/7/x86_64/primary_db                                                         | 6.0 MB  00:00:16     
(2/4): extras/7/x86_64/primary_db                                                       | 153 kB  00:00:16     
(3/4): base/7/x86_64/group_gz                                                           | 165 kB  00:00:17     
(4/4): updates/7/x86_64/primary_db                                                      | 5.9 MB  00:00:21     

NetworkManager.x86_64                                    1:1.18.0-5.el7_7.1                             updates
NetworkManager-libnm.x86_64                              1:1.18.0-5.el7_7.1                             updates
NetworkManager-team.x86_64                               1:1.18.0-5.el7_7.1                             updates
NetworkManager-tui.x86_64                                1:1.18.0-5.el7_7.1                             updates
NetworkManager-wifi.x86_64                               1:1.18.0-5.el7_7.1                             updates
binutils.x86_64                                          2.27-41.base.el7_7.1                           updates
ca-certificates.noarch                                   2019.2.32-76.el7_7                             updates
curl.x86_64                                              7.29.0-54.el7_7.1                              updates
device-mapper.x86_64                                     7:1.02.158-2.el7_7.2                           updates
device-mapper-event.x86_64                               7:1.02.158-2.el7_7.2                           updates
device-mapper-event-libs.x86_64                          7:1.02.158-2.el7_7.2                           updates
device-mapper-libs.x86_64                                7:1.02.158-2.el7_7.2                           updates
firewalld.noarch                                         0.6.3-2.el7_7.2                                updates
firewalld-filesystem.noarch                              0.6.3-2.el7_7.2                                updates
hostname.x86_64                                          3.13-3.el7_7.1                                 updates
iproute.x86_64                                           4.11.0-25.el7_7.2                              updates
kernel.x86_64                                            3.10.0-1062.9.1.el7                            updates
kernel-tools.x86_64                                      3.10.0-1062.9.1.el7                            updates
kernel-tools-libs.x86_64                                 3.10.0-1062.9.1.el7                            updates
krb5-libs.x86_64                                         1.15.1-37.el7_7.2                              updates
libblkid.x86_64                                          2.23.2-61.el7_7.1                              updates
libcurl.x86_64                                           7.29.0-54.el7_7.1                              updates
libmount.x86_64                                          2.23.2-61.el7_7.1                              updates
libsmartcols.x86_64                                      2.23.2-61.el7_7.1                              updates
libuuid.x86_64                                           2.23.2-61.el7_7.1                              updates
lvm2.x86_64                                              7:2.02.185-2.el7_7.2                           updates
lvm2-libs.x86_64                                         7:2.02.185-2.el7_7.2                           updates
microcode_ctl.x86_64                                     2:2.1-53.7.el7_7                               updates
nss.x86_64                                               3.44.0-7.el7_7                                 updates
nss-softokn.x86_64                                       3.44.0-8.el7_7                                 updates
nss-softokn-freebl.x86_64                                3.44.0-8.el7_7                                 updates
nss-sysinit.x86_64                                       3.44.0-7.el7_7                                 updates
nss-tools.x86_64                                         3.44.0-7.el7_7                                 updates
nss-util.x86_64                                          3.44.0-4.el7_7                                 updates
numactl-libs.x86_64                                      2.0.12-3.el7_7.1                               updates
polkit.x86_64                                            0.112-22.el7_7.1                               updates
procps-ng.x86_64                                         3.3.10-26.el7_7.1                              updates
python-firewall.noarch                                   0.6.3-2.el7_7.2                                updates
python-perf.x86_64                                       3.10.0-1062.9.1.el7                            updates
rsyslog.x86_64                                           8.24.0-41.el7_7.2                              updates
selinux-policy.noarch                                    3.13.1-252.el7_7.6                             updates
selinux-policy-targeted.noarch                           3.13.1-252.el7_7.6                             updates
sudo.x86_64                                              1.8.23-4.el7_7.1                               updates
systemd.x86_64                                           219-67.el7_7.2                                 updates
systemd-libs.x86_64                                      219-67.el7_7.2                                 updates
systemd-sysv.x86_64                                      219-67.el7_7.2                                 updates
tuned.noarch                                             2.11.0-5.el7_7.1                               updates
tzdata.noarch                                            2019c-1.el7                                    updates
util-linux.x86_64                                        2.23.2-61.el7_7.1                              updates
[root@centos7 ~]# 
[root@centos7 ~]# 

How to update the Linux Kernel on CentOS 7

I hope you’ve noticed that between the multiple things that have been updated was the Kernel, if you haven’t please go back to the list and look lines number 431 and 432, you’ll surprised, same as I was the first time, unbelievable! Many Thanks to yum for making our life that easy!

How to check the Kernel version

As you can imagine there is a CLI command which allow us to see the current version of the Linux Kernel, see below.

uname -snr

CentOS kernel version