国内yum源的安装(163,阿里云,epel)
转载至 https://www.cnblogs.com/imweihao/p/7357484.html
国内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镜像源
第一步:备份你的原镜像文件,以免出错后可以恢复。
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 第二步:下载新的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 生成缓存
----EPEL源
EPEL(Extra Packages for Enterprise Linux)是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS等提供高质量软件包的项目。装上了 EPEL,就像在 Fedora 上一样,可以通过 yum install 软件包名,即可安装很多以前需要编译安装的软件、常用的软件或一些比较流行的软件,比如现在流行的nginx、htop、ncdu、vnstat等等,都可以使用EPEL很方便的安装更新。
目前可以直接通过执行命令: yum install epel-release 直接进行安装,如果此命令无法安装可以尝试以下方法
----安装EPEL 阿里云源
1、备份(如有配置其他epel源)
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
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 :
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm
CentOS/RHEL 6 :
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
CentOS/RHEL 7 :
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
国内yum源的安装(163,阿里云,epel)相关推荐
- CentOS 7 配置yum本地base源和阿里云epel源
yum仓库的配置文件都存放在/etc/yum.repo.d/目录下,并且文件名必须以.repo结尾. base源:解决rpm依赖性关系 epel源:Extra Packages for Enterpr ...
- LNMP环境搭建(用阿里云epel源安装)
一.安装 Nginx: 1.下载阿里云镜像中的epel源 阿里云epel源链接 #redhat8版本可能会导致无法安装nginx wget -O /etc/yum.repos.d/epel.repo ...
- Centos 安装阿里云EPEL源
Centos 安装阿里云EPEL源 1. 首先卸载以前装的epel以免影响 rpm -e epel-release 2. 下载阿里提供的epel wget -P /etc/yum.repos.d/ h ...
- Centos配置国内yum源
1. 将Centos的yum源更换为国内的阿里云源 zzk.cnblogs.com/my/s/blogpost-p?Keywords=yum 阿里云是最近新出的一个镜像源.得益与阿里云的高速发展,这么 ...
- Linux_yum命令及国内yum源推荐
常用的Linux yum命令 语法格式:yum [options] [command] [package -] options:选项,包括-h(帮助),-y(操作自动选择yes),-q(不显示安装过程 ...
- Cenos7配置国内yum源
Cenos7配置国内yum源 如果系统是刚安装好,那么系统中会默认就会有几个repo文件,但是baseurl的地址是外网地址,所以下载包的速度会比较慢,可以在安装wget包后,将其全部替换为国内yum ...
- centos国内yum源
网易(163)yum源是国内最好的yum源之一 ,无论是速度还是软件版本,都非常的不错,将yum源设置为163yum,可以提升软件包安装和更新的速度,同时避免一些常见软件版本无法找到.V9zz的云主机 ...
- 【mysql安装】阿里云centos7环境mysql安装
阿里云centos7环境mysql安装 正文开始@Assassin 目录: 阿里云centos7环境mysql安装 一. 环境说明: 1.1 操作系统: 1.2 MySQL版本: 1.3 安装方式: ...
- 更换yum源,安装扩展源,yum下载rpm包,源码包安装软件
2019独角兽企业重金招聘Python工程师标准>>> 更换国内yum源 我们的Linux中默认的yum源是国外的,有的时候网络不好,而我么需要下载的包过大的时候更换成国内的yum源 ...
最新文章
- 以太网帧,ARP报文
- HDU 1671 Phone List
- 洛谷P1352 没有上司的舞会题解
- 全球与中国激光投影设备市场前景规划与发展战略建议报告2022-2028年版
- JavaScript实现backtracking Jump Game回溯跳跃游戏算法(附完整源码)
- 这样给数组初始化,你肯定没有见过
- 大数据数据仓库-简介
- TIM软件 docx.文件 安卓手机下载路径
- 机器学习之逻辑回归(Logistic Regression)
- Unity动画 代码加载动画,可复用
- 密码破解---实验七:本地系统密码破解
- Exception raised: Traceback (most recent call last):
- 第八讲:期望最大化算法(EM algorithm)
- 力扣题:生命游戏解题(未考虑内存消耗)
- MySQL中的max_connections和max_user_connections 及 MySQL服务器最大连接数的合理设置
- 你应该知道的常见的http协议状态
- 公司拖欠后端工资逼急了可以删库跑路,逼急了前端该如何何去何从?
- 产品经理:你能不能让词云动起来?
- win10安装MySQL解压缩版 8.0.15(非转载,较详细)
- 仿站php主题,Z-BlogPHP主题教程(一)详细了解Z-BlogPHP主题