Centos7配置阿里yum源
1.进入yum文件夹
命令:cd /etc/yum.repos.d/ 2.下载wget
命令:yum -y install wget
命令:yum install bash-completion #自动补全软件包
命令:yum -y install lrzsz注意:如果出现wget: command not found可以下载wget
3.删除yum文件夹所有yum源
命令:rm -rf /etc/yum.repos.d/*.repo4.利用wget下载阿里云repo文件
命令:wget http://mirrors.aliyun.com/repo/Centos-7.repo5.执行yum源更新命令
清理yum源命令:yum clean all
清理缓存命令:yum makecache注意:依次执行
6.看一下yum仓库有多少包
命令:yum repolist