cd /etc/yum.repos.d/
ls
mkdir repo_bak
mv *.repo repo_bak/
到網易和阿里開源鏡像站點下載系統對應版本的repo文件(前提得有wget命令,yum install -y wget)
wget http://mirrors.aliyun.com/repo/Centos-7.repo
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
ls
yum clean all #清除yum緩存
yum makecache #生成新的yum緩存
yum list|grep epel-release
yum install -y epel-release #安裝epel源
ls
#下載阿里開源鏡像的epel源文件
wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache#
yum list |grep pptpd #驗證一下有沒有這個包
配置epel源
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
yum擴展源epel安裝後無法使用
趙雁生
2019-02-22 23:13:24
centos安裝epel源
學習是樂趣
2019-02-22 23:02:06
CentOS安裝epel源詳解
小白歷險記
2019-02-22 22:29:56
筆記-centos6安裝EPEL YUM源
街邊看景
2019-02-22 22:11:25
centos,epel,repoforge三個鏡像源
microsoftwxj
2019-02-22 22:01:14
配置epel yum 源的方法
小_樹
2019-02-22 20:45:32
關於centos安裝epel源的方法
a997989746
2019-02-22 20:10:07
記一次yum報錯的解決方法
jvrmusic520
2019-02-22 19:51:30
CentOS6.8上安裝epel
聚沙
2019-02-22 18:50:50
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
mshaiting
2019-02-22 16:35:52
虛擬機下安裝EPEL源後YUM安裝工具報ERROR -1錯誤的解決方法
flyjun
2019-02-22 14:59:11
Zabbix系列之Zabbix安裝搭建及漢化
燕十三_
2019-02-22 14:50:05
redhat 7配置使用centos的yum源
TaoismLi
2019-02-22 14:32:03