1. View the operating system version
[email protected] ~]# Cat/etc/redhat-release
CentOS Release 6.4 (Final)
2. Allow the operating system to communicate with the external network
[[email protected] ~]# ping www.baidu.com
PING www.a.shifen.com (119.75.218.70) bytes of data.
Bytes from 119.75.218.70:icmp_seq=1 ttl=128 time=4.90 ms
Bytes from 119.75.218.70:icmp_seq=2 ttl=128 time=5.33 ms
3. Configure the Yum source
[Email protected] ~]# Vim/etc/yum.repos.d/centos-base.repo
[Base]
name=centos-$releasever-base
#mirrorlist =http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=os
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
Gpgcheck=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6
4. Upgrading the operating system version with Yum
[[email protected] ~]# Yum update
Total Download size:121 M
Is this OK [y/n]: y
5. Check the operating system version after installation
[Email protected] ~]# cat/etc/redhat-release
CentOS Release 6.6 (Final)
This article is from the Chen. "Blog, be sure to keep this provenance http://chenxiaojian.blog.51cto.com/9345444/1618388
Using Yum to upgrade the operating system version (currently up-to-date 6.6)