安装wget软件
先后安装以下三个命令1
2
3[root@localhost network-scripts]# yum -y install wget
[root@localhost network-scripts]# yum -y install setup
[root@localhost network-scripts]# yum -y install perl
在CentOS 7下更改yum源与更新系统
1.1 首先备份/etc/yum.repos.d/CentOS-Base.repo
1 | [root@localhost network-scripts]# cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup |
1.2 进入yum源配置文件所在文件夹
1 | [root@localhost network-scripts]# cd /etc/yum.repos.d/ |
1.3 下载163的yum源配置文件,放入/etc/yum.repos.d/(操作前请做好相应备份)
1 | [root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo |
1.4 运行yum makecache生成缓存
1 | [root@localhost yum.repos.d]# yum makecache |
1.5 更新系统(时间比较久,主要看个人网速)
1 | [root@localhost yum.repos.d]# yum -y update |
1.6 安装vim编辑器
1 | [root@localhost yum.repos.d]# yum -y install vim* |