1.官方停止更新CentOS 6之后手工更新yum源
备份/etc/yum.repos.d/CentOS-Base.repo文件 # cd /etc/yum.repos.d/ && mv CentOS-Base.repo CentOS-Base.repo.back 从下面给出的链接下载一个新 CentOS-Base.repo文件 # wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo ## wget -O /etc/yum.repos.d/epel-6.repo http://mirrors.aliyun.com/repo/epel-6.repo # vim /etc/yum.repos.d/CentOS-Base.repo :%s/centos/centos-vault/g :%s/$releasever/6.10/g # yum clean all # yum makecache |
2.安装必要软件包
yum groupinstall "Chinese Support" -y yum groupinstall Desktop -y |
3.配置默认runlevel为5
sed -i s/"id:3:initdefault:"/"id:5:initdefault:"/g /etc/inittab |
4.reboot