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

位置:首页>文章>详情   分类: 教程分享 > Java教程   阅读(1086)   2023-03-28 11:29:14
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
 
标签: Linux yum yum源
地址: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版本管理器