1、cp /etc/yum.repos.d/CentOS-Base.repo /tmp/CentOS-Base.repo.bak (备份源文件)
2、wget -O CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo (添加网易源)
3、yum clean all (清理缓存中的软件包和头文件)
yum clean headers
yum clean packages
4、yum makecache (服务器的包信息下载到本地电脑缓存起来)
5、yum repolist (显示已配置的源)
yum provides ifconfig / yum whatprovides ifconfig (查找ifconig命令所属安装包和位置信息)
yum search net-tools / yum -C search net-tools