=
国内yum源的安装(163,阿里云,epel)
----阿里云镜像源
1、备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/
CentOS 5
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
CentOS 6
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
CentOS 7
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
3、之后运行命令生成缓存
yum clean all && yum makecache
----163镜像源
1:备份你的原镜像文件,以免出错后可以恢复。
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2:下载新的CentOS-Base.repo 到/etc/yum.repos.d/
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS5-Base-163.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
3、之后运行命令生成缓存
yum clean all && yum makecache
2、下载新repo 到/etc/yum.repos.d/
epel(RHEL 7)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
epel(RHEL 6)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
epel(RHEL 5)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-5.repo
----官方源直接安装
CentOS/RHEL 5 :
CentOS/RHEL 6 :
CentOS/RHEL 7 :
------------------------------------------------脚本-----------------------------------------------------
---------------------阿里云--------------
CentOS 6
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
yum clean all && yum makecache
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
CentOS 6
---------------------网易--------------
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo
yum clean all && yum makecache
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
参考:prefer:
=
参考1:https://yq.aliyun.com/articles/38561 CentOS6使用第三方YUM源(EPEL、RPMForge和RPMFusion)
写的比较详细,可以好好参考:
1、安装yum-priorities插件
2、CentOS默认源设置(一般设置CentOS-Base,设置为优先级最高1)
3、安装epel
4、安装rpmforge
5、安装rpmfusion
6、加载所有YUM源
yum list #列出所有第三方YUM源的软件包
参考2:https://www.cnblogs.com/imweihao/p/7357484.html 国内yum源的安装(163,阿里云,epel)
比较全。
参考3:官方源、镜像源汇总:https://www.cnblogs.com/clsn/p/8372108.html
总结了官方的很多源,比较好找。
=
=
相关推荐
centos7 yum源的配置文件,参考连接https://blog.csdn.net/lqh_linux/article/details/120758105
参数说明:1.ftp源安装,2.yum源安装,3.设置aliyun Centos-5.repo,4.设置aliyun Centos-6.repo,5.设置aliyun Centos-7.repo,6设置163 CentOS5-Base-163.repo,7.设置163 CentOS6-Base-163.repo,8.设置163 CentOS...
由于安装centos后的默认yum源为centos的官方地址,所以在国内使用很慢甚至无法访问,所以一般的做法都是把默认的yum源替换成aliyun的yum源或者163等国内的yum源(下文介绍如何配置)。 但是以上的方法都是需要网络的...
修改linux操作系统 修改centos系统的yum源为阿里云详解
阿里云服务器yum源,如果你的阿里云服务器无法通过yum安装软件,可以试试这个。
阿里CentOS6 yum源
在rhel7版本或者Centos7版本替换阿里云yum源所需要的安装包
该CentOS系统镜像源包含以下几个...阿里云、 清华大学镜像源 epel镜像源 前提:需要系统可正常访问外网 第一次加载刷新yum缓存时,速度可能会慢一些,但是加载完以后使用yum安装软件包的时候速度还是很快的,强烈推荐
一次性解决很多小问题,国内资源比较稳定。
CentOS7阿里云yum源
centos9_StreamISO镜像及yum源配置文件和配置方法
# 安装yum软件包 # 注意:单个的安装包可能会依赖其它包(例如yum和yum-fastestmirror会相互依赖),所以我们可以把所有这些包放在一起,用一行命令将它们同时安装即可: rpm -ivh python-urlgrabber-3.10-8.el7....
redhat 6.8 更新阿里云的yum源需要的包,官网有时候下载不了,为神需要50字阿。我好懒,再不够我就要放弃了,今天天气真的很闷
安装了gcc后,源码安装gettext,再源码安装yum即可,亲测成功
网络yum源的简单配置方法,一般安装好redhat后,不能注册的话,不能使用系统自带的yum源。但是我们可以自己配置yum源来解决这一问题。下面介绍下redhat配置163yum源。
CentOS6.9安装的yum源 一不小心删除yum源后重新安装的文件
Rocky9.2基于http方式搭建局域网yum源。
[local_server] (库名称) name=This is a local repo (名称描述) ...baseurl=file:///mnt/cdrom (yum源目录,源地址) enabled=1(是否启用该yum源,0为禁用) gpgcheck=0(检查GPG-KEY,0为不检查,1为检查)