Update / Upgrade CentOS / Red Hat Servers with the help of Yum Command

Yum command is an interactive way to Update / upgrade CentOS/Red Hat servers.

Yum upgrade server and apply all security patches, pass update option to yum command. It will update every currently installed package. If one or more packages are specified, Yum will only update the listed packages. While updating packages, yum will ensure that all dependencies are satisfied. If no package matches the given package name, they are assumed to be a shell glob and any matches are then installed.

Type the Yum Command as a root user.

login as: root

root@192.168.147.128’s password:
Last login: Sun Oct  4 16:18:17 2015 from 192.168.147.1
[root@localhost ~]# yum update
Loaded plugins: aliases, auto-update-debuginfo, changelog, fastestmirror,
              : filter-data, fs-snapshot, keys, list-data, local, merge-conf,
              : post-transaction-actions, presto, priorities, protectbase, ps,
              : refresh-packagekit, remove-with-leaves, rpm-warm-cache,
              : security, show-leaves, tmprepo, tsflags, upgrade-helper, verify,
              : versionlock
Setting up Update Process
Loading mirror speeds from cached hostfile
 * base: mirrors.vinahost.vn
 * extras: mirrors.vinahost.vn
 * rpmforge: ftp.riken.jp
 * updates: mirrors.vinahost.vn
_local                                                   | 2.9 kB     00:00 …
http://mirrors.vinahost.vn/centos/6.7/os/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 – “Failed to connect to 64:ff9b::7b1e:81ba: Network is unreachable”
Trying other mirror.
base                                                     | 3.7 kB     00:00
http://mirrors.vinahost.vn/centos/6.7/extras/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 – “Failed to connect to 64:ff9b::7b1e:81ba: Network is unreachable”
Trying other mirror.
extras                                                   | 3.4 kB     00:00
rpmforge                                                 | 1.9 kB     00:00
http://mirrors.vinahost.vn/centos/6.7/updates/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 – “Failed to connect to 64:ff9b::7b1e:81ba: Network is unreachable”
Trying other mirror.
updates                                                  | 3.4 kB     00:00
updates/primary_db                                       | 1.9 MB     02:44
Skipping filters plugin, no data
0 packages excluded due to repository protections
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
Skipping filters plugin, no data
–> Running transaction check
—> Package openldap.i686 0:2.4.40-5.el6 will be updated
—> Package openldap.i686 0:2.4.40-6.el6_7 will be an update
—> Package openldap-devel.i686 0:2.4.40-5.el6 will be updated
—> Package openldap-devel.i686 0:2.4.40-6.el6_7 will be an update
—> Package tzdata.noarch 0:2015f-1.el6 will be updated
—> Package tzdata.noarch 0:2015g-2.el6 will be an update
—> Package tzdata-java.noarch 0:2015f-1.el6 will be updated
—> Package tzdata-java.noarch 0:2015g-2.el6 will be an update
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch          Version               Repository      Size
================================================================================
Updating:
 openldap              i686          2.4.40-6.el6_7        updates        284 k
 openldap-devel        i686          2.4.40-6.el6_7        updates        1.1 M
 tzdata                noarch        2015g-2.el6           updates        440 k
 tzdata-java           noarch        2015g-2.el6           updates        177 k

Transaction Summary
================================================================================
Upgrade       4 Package(s)

Total download size: 2.0 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
updates/prestodelta                                      | 108 kB     00:17
Processing delta metadata
Download delta size: 378 k
(1/2): tzdata-2015f-1.el6_2015g-2.el6.noarch.drpm        | 286 kB     00:39
(2/2): tzdata-java-2015f-1.el6_2015g-2.el6.noarch.drpm   |  92 kB     00:06
Finishing rebuild of rpms, from deltarpms
<delta rebuild>                                          | 617 kB     00:05
Presto reduced the update size by 39% (from 617 k to 378 k).
Package(s) data still to download: 1.4 M
(1/2): openldap-2.4.40-6.el6_7.i686.rpm                  | 284 kB     00:20
(2/2): openldap-devel-2.4.40-6.el6_7.i686.rpm            | 1.1 MB     02:13
——————————————————————————–
Total                                           9.0 kB/s | 1.4 MB     02:38
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : openldap-2.4.40-6.el6_7.i686                                 1/8
  Updating   : openldap-devel-2.4.40-6.el6_7.i686                           2/8
  Updating   : tzdata-java-2015g-2.el6.noarch                               3/8
  Updating   : tzdata-2015g-2.el6.noarch                                    4/8
  Cleanup    : openldap-devel-2.4.40-5.el6.i686                             5/8
  Cleanup    : openldap-2.4.40-5.el6.i686                                   6/8
  Cleanup    : tzdata-java-2015f-1.el6.noarch                               7/8
  Cleanup    : tzdata-2015f-1.el6.noarch                                    8/8
  Verifying  : openldap-2.4.40-6.el6_7.i686                                 1/8
  Verifying  : openldap-devel-2.4.40-6.el6_7.i686                           2/8
  Verifying  : tzdata-2015g-2.el6.noarch                                    3/8
  Verifying  : tzdata-java-2015g-2.el6.noarch                               4/8
  Verifying  : tzdata-2015f-1.el6.noarch                                    5/8
  Verifying  : openldap-devel-2.4.40-5.el6.i686                             6/8
  Verifying  : tzdata-java-2015f-1.el6.noarch                               7/8
  Verifying  : openldap-2.4.40-5.el6.i686                                   8/8

Updated:
  openldap.i686 0:2.4.40-6.el6_7      openldap-devel.i686 0:2.4.40-6.el6_7
  tzdata.noarch 0:2015g-2.el6         tzdata-java.noarch 0:2015g-2.el6

Complete!
[root@localhost ~]#

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s