How To Update CentOS 7.0/7.1/7.2/7.3/7.4/7.5/7.6 to CentOS 7.7
CentOS has released its major release of CentOS 7.7 on 17th September 2019, derived from the release of RHEL 7.7.
This post is mainly focusing on upgrading the previous version of CentOS 7.x to the latest version (Centos 7.7 at the time writing).
Before going to update, let’s take a look at the main changes in the latest version.
Major changes
- CentOS can report bugs directly to bugs.centos.org via new abrt release.
- OpenJDK 11 is now available
- pNFS SCSI is no longer a Technology Preview.
See CentOS 7.7 release note for more information.
Update CentOS 7.0/7.1/7.2/7.3/7.4/7.5/7.6 to CentOS 7.7
Check the current version of your release.
cat /etc/redhat-release
Output:
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
Output:
The following are the updates available for my machine.
Loaded plugins: fastestmirror Determining fastest mirrors * base: centos.excellmedia.net * extras: centos-hcm.viettelidc.com.vn * updates: centos-hcm.viettelidc.com.vn 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/group_gz | 165 kB 00:00:00 (2/4): extras/7/x86_64/primary_db | 153 kB 00:00:06 (3/4): base/7/x86_64/primary_db | 6.0 MB 00:00:07 (4/4): updates/7/x86_64/primary_db | 2.8 MB 00:00:09 GeoIP.x86_64 1.5.0-14.el7 base 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 . . . . . . teamd.x86_64 1.27-9.el7 base 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 base vim-minimal.x86_64 2:7.4.629-6.el7 base wpa_supplicant.x86_64 1:2.6-12.el7 base xfsprogs.x86_64 4.5.0-20.el7 base yum.noarch 3.4.3-163.el7.centos base yum-plugin-fastestmirror.noarch 1.1.31-52.el7 base zlib.x86_64 1.2.7-18.el7 base Obsoleting Packages grub2.x86_64 1:2.02-0.80.el7.centos base grub2.x86_64 1:2.02-0.65.el7.centos.2 @base grub2-tools.x86_64 1:2.02-0.80.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.80.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.80.el7.centos base grub2-tools.x86_64 1:2.02-0.65.el7.centos.2 @base
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.
wpa_supplicant x86_64 1:2.6-12.el7 base 1.2 M xfsprogs x86_64 4.5.0-20.el7 base 896 k yum noarch 3.4.3-163.el7.centos base 1.2 M yum-plugin-fastestmirror noarch 1.1.31-52.el7 base 34 k zlib x86_64 1.2.7-18.el7 base 90 k Installing for dependencies: bind-export-libs x86_64 32:9.11.4-9.P2.el7 base 1.1 M geoipupdate x86_64 2.5.0-1.el7 base 35 k json-c x86_64 0.11-4.el7_0 base 31 k libpng x86_64 2:1.5.13-7.el7_2 base 213 k libsmartcols x86_64 2.23.2-61.el7 base 141 k Transaction Summary ============================================================================================================================== Install 5 Packages (+5 Dependent packages) Upgrade 180 Packages Total download size: 269 M Is this ok [y/d/N]: Y << Press Y and Enter Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/190): NetworkManager-libnm-1.18.0-5.el7_7.1.x86_64.rpm | 1.7 MB 00:00:01 (2/190): NetworkManager-team-1.18.0-5.el7_7.1.x86_64.rpm | 163 kB 00:00:00 (3/190): GeoIP-1.5.0-14.el7.x86_64.rpm | 1.5 MB 00:00:01 (4/190): NetworkManager-tui-1.18.0-5.el7_7.1.x86_64.rpm | 326 kB 00:00:00 (5/190): NetworkManager-1.18.0-5.el7_7.1.x86_64.rpm | 1.9 MB 00:00:02 (6/190): NetworkManager-wifi-1.18.0-5.el7_7.1.x86_64.rpm | 200 kB 00:00:00 (7/190): alsa-lib-1.1.8-1.el7.x86_64.rpm | 425 kB 00:00:00 (8/190): audit-libs-2.8.5-4.el7.x86_64.rpm | 102 kB 00:00:00 (9/190): bash-4.2.46-33.el7.x86_64.rpm | 1.0 MB 00:00:00 (10/190): bind-export-libs-9.11.4-9.P2.el7.x86_64.rpm | 1.1 MB 00:00:00 (11/190): bind-libs-lite-9.11.4-9.P2.el7.x86_64.rpm | 1.1 MB 00:00:00 (12/190): bind-license-9.11.4-9.P2.el7.noarch.rpm | 88 kB 00:00:00 (13/190): biosdevname-0.7.3-2.el7.x86_64.rpm | 38 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.
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 tar.x86_64 2:1.26-35.el7 teamd.x86_64 0:1.27-9.el7 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 vim-minimal.x86_64 2:7.4.629-6.el7 wpa_supplicant.x86_64 1:2.6-12.el7 xfsprogs.x86_64 0:4.5.0-20.el7 yum.noarch 0:3.4.3-163.el7.centos yum-plugin-fastestmirror.noarch 0:1.1.31-52.el7 zlib.x86_64 0:1.2.7-18.el7 Replaced: grub2.x86_64 1:2.02-0.65.el7.centos.2 grub2-tools.x86_64 1:2.02-0.65.el7.centos.2 Complete!
Once the packages are installed, you can go ahead and reboot your machine
reboot
Now, verify the CentOS version.
cat /etc/redhat-release
Output:
CentOS Linux release 7.7.1908 (Core)
Conclusion
That’s All. Please share your feedback in the comments section.