centos5/6/7修改国内阿里云的yum安装源

教程分享 > Java教程 (2881) 2024-04-13 17:20:32

1.备份

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2.centos5

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
#或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo


centos6

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
#或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo


centos7

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

 

https://www.leftso.com/article/363.html

相关文章
centos5/6/7修改国内阿里云的yum安装源
centos6.8切换yum源为国内阿里源,默认情况下centos的源是官方的,在国外,下载软件啥的都很慢很慢,这里讲解如何将centos 6.8软件源切换到国内镜像库
centos6 yum安装redis3.29,centos6 源码安装redis以及常用配置
yum安装jdk1.8-CentOS6.5,centos6,jdk8
在Linux系统中安装和配置Java的运行或者编译jdk环境。安装分两种类型,系统安装包例如centos系列的有rpm包或者通过yum安装;第二总就是Linux通用的方法,下载对应系统的jdk压...
centos6.8 yum安装和配置ftp server(vsftpd)客服端以及ftp常见问题解决,vsftpd
mongodb数据库linux安装配置用户创建删除修改
docker入门使用教程/linux(centos)系统docker制作教程
linux安装配置svn版本管理器
linux系统之centos 7 安装和配置redis,redis是一个高性能的key-value数据库,通常用于分布式缓存
centos6.5安装MySQL 5.6版本,并配置数据了链接数量数据库默认字符集utf8mb4支持Emoji表情4字节内容
centos7安装docker启动报错 Error starting daemon: layer does not exist
Linux系统修改静态IP
centos7升级内核,centos 7