2 Star 1 Fork 0

zhrun8899 / learning-notes

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
repo163-centos7安装.txt 579 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhrun8899 提交于 2019-08-15 14:35 . 20190815 commit
一般是下载 .repo 源即可,但有时候我们需要安装一些额外的包,就需要下载 Extra Packages for Enterprise Linux (EPEL) 源, 比如我们需要用 yum 安装 ansible ,就需要安装 epel 。
1.安装 repo 源。
repo 源一般包括 base, updates, Extras 三部分。
$ cd /etc/yum.repos.d/
$ wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
如果还有其他源,可以暂且把他们重命名成其他扩展名,比如 centos-base.repo.bak
$ mv CentOS7-Base-163.repo CentOS7-Base.repo
$ yum clean all
$ yum makecache
2.安装 epel 源。
$ yum install epel-release
$ yum makecache
3.检查是否安装成功
$ yum repolist
1
https://gitee.com/zhrun8899/learning-notes.git
git@gitee.com:zhrun8899/learning-notes.git
zhrun8899
learning-notes
learning-notes
master

搜索帮助