Centos 6.7配置阿里源

Centos 6.7配置阿里源



[root@test yum.repos.d]# cat /etc/issue 查看系统版本

CentOS release 6.7 (Final)

Kernel \r on an \m

[root@test yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo 下载阿里源

[root@test yum.repos.d]# ls

CentOS6-Base-163.repo.bak CentOS-Base.repo local.repo.bak 在这里只使用了阿里云,对其他源进行备份处理。

[root@test yum.repos.d]# yum clean all 清除缓存

[root@test yum.repos.d]# yum makecache 生成缓存

[root@test yum.repos.d]# yum list查看生成的源,如果成功是列出一些系统安装包

相关文章

linux下开机自启: 在/etc/init.d目录下新建文件elasticsear...
1、因为在centos7中/etc/rc.d/rc.local的权限被降低了,所以...
最简单的查看方法可以使用ls -ll、ls-lh命令进行查看,当使用...
ASP.NET Core应用程序发布linux在shell中运行是正常的。可一...
设置时区(CentOS 7) 先执行命令timedatectl status|grep &...
vim /etc/sysconfig/network-scripts/ifcfg-eth0 B...