View current version information first
# uname-a
Linux localhost.localdomain3.10.0-123.el7.x86_64 #1 SMP Mon June 12:09:22 UTC x86_64 x86_64 x86_64gnu/linux
# Cat/etc/redhat-release
CentOS Linux release 7.0.1406 (Core)
System upgrade via Yum command
[[email protected] ~]# yum update→ update package option with no parameters update can update all installed packages
Loaded Plugins:fastestmirror, LangPacks
Base | 3.6 KB 00:00
Extras | 3.3 KB 00:00
Updates | 3.4 KB 00:00
updates/7/x86_64/primary_db | 2.8 MB 00:03
Loading mirror speeds from cached hostfile
* base:mirrors.neusoft.edu.cn
* extras:mirrors.skyshe.cn
* updates:mirrors.neusoft.edu.cn
Resolving Dependencies
--Running Transaction check
---> Package dhclient.x86_64 12:4.2.5-27.el7.centos'll be updated
---> Package dhclient.x86_64 12:4.2.5-27.el7.centos.1 would be a update
---> Package dhcp-common.x86_64 12:4.2.5-27.el7.centos'll be updated
---> Package dhcp-common.x86_64 12:4.2.5-27.el7.centos.1 would be a update
........
....... (partially omitted)
Dependencies resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Updating:
Dhclient x86_64 12:4.2.5-27.el7.centos.1 Updates 276 k
Dhcp-common x86_64 12:4.2.5-27.el7.centos.1 updates 169 k
Dhcp-libs x86_64 12:4.2.5-27.el7.centos.1 updates 126 k
Kpatch noarch 0.1.10-1.el7_0 updates 8.2 k
Nss-util x86_64 3.16.2-1.el7_0 Updates K
OpenSSL x86_64 1:1.0.1e-34.el7_0.4 updates 705 k
Openssl-libs x86_64 1:1.0.1e-34.el7_0.4 updates 940 k
Yum-plugin-fastestmirror noarch 1.1.31-25.el7_0 Updates K
Yum-utils Noarch 1.1.31-25.el7_0 updates 111 k
.................
......... (partially omitted)
Transaction Summary
================================================================================
Upgrade Packages
Total Download size:4.6 M
Is this OK [y/d/n]: Y
Downloading packages:
Delta RPMs disabled because/usr/bin/applydeltarpm not installed.
(1/17): dhcp-common-4.2.5-27.el7.centos.1.x86_64.rpm | 169 KB 00:00
(2/17): dhclient-4.2.5-27.el7.centos.1.x86_64.rpm | 276 KB 00:01
(3/17): kpatch-0.1.10-1.el7_0.noarch.rpm | 8.2 KB 00:00
(4/17): libgcc-4.8.2-16.2.el7_0.x86_64.rpm | KB 00:00
(5/17): dhcp-libs-4.2.5-27.el7.centos.1.x86_64.rpm | 126 KB 00:01
(6/17): libstdc++-4.8.2-16.2.el7_0.x86_64.rpm | 288 KB 00:00
.................
........... (partially omitted)
--------------------------------------------------------------------------------
Total 649 kb/s | 4.6 MB 00:07
Running transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning:rpmdb altered outside of Yum.
Updating:nss-util-3.16.2-1.el7_0.x86_64 1/34
Updating:12:dhcp-libs-4.2.5-27.el7.centos.1.x86_64 2/34
Updating:nss-softokn-freebl-3.16.2-1.el7_0.x86_64 3/34
Updating:nss-softokn-3.16.2-1.el7_0.x86_64 4/34
.......................
.....................
................. (partially omitted)
Verifying:yum-utils-1.1.31-24.el7.noarch 34/34
Updated:
Dhclient.x86_64 12:4.2.5-27.el7.centos.1
Dhcp-common.x86_64 12:4.2.5-27.el7.centos.1
Dhcp-libs.x86_64 12:4.2.5-27.el7.centos.1
Kpatch.noarch 0:0.1.10-1.el7_0
Libgcc.x86_64 0:4.8.2-16.2.el7_0
Libgomp.x86_64 0:4.8.2-16.2.el7_0
Libstdc++.x86_64 0:4.8.2-16.2.el7_0
Nss.x86_64 0:3.16.2-2.el7_0
Nss-softokn.x86_64 0:3.16.2-1.el7_0
...........
(partially omitted)
complete!
after a reboot, verify
[Email protected] ~]# uname-a
Linux localhost.localdomain3.10.0-123.6.3.el7.x86_64 #1 SMP Wed 6 21:12:36 UTC x86_64 x86_64x86_64 gnu/linux
[email protected] ~]# Cat/etc/redhat-releas e
CentOS Linux release 7.0.1406 (Core)