repo文件说明使用和常用源 aliyun,remi,webtatic
使用
1 | # 检查更新 |
常用 repo 源
阿里云
http://mirrors.aliyun.com/repo/
地址列表
- 5 http://mirrors.aliyun.com/repo/Centos-5.repo
- 6 http://mirrors.aliyun.com/repo/Centos-6.repo
- 7 http://mirrors.aliyun.com/repo/Centos-7.repo
1 | cd /etc/yum.repos.d |
163
centos 帮助文件 http://mirrors.163.com/.help/centos.html
镜像列表 http://mirrors.163.com/
地址列表
- http://mirrors.163.com/.help/CentOS5-Base-163.repo
- http://mirrors.163.com/.help/CentOS6-Base-163.repo
- http://mirrors.163.com/.help/CentOS7-Base-163.repo
remi 源
说明
https://rpms.remirepo.net/ 是包含最新版本 PHP 和 MySQL 包的 Linux 源,由 Remi 提供维护。有个这个源之后,使用 YUM 安装或更新 PHP、MySQL、phpMyAdmin 等服务器相关程序的时候就非常方便了。地址可以在页面上复制找到
安装 Remi 源
1 | # yum install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm |
1 | # dnf install https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/remi-release-8.rpm |
更新
1 | 安裝好之後 , 可以用 yum 指令檢查更新 |
rpmforge
rpmforge 有我們常常用的 rsync 最新版
地址 : http://pkgs.repoforge.org/rpmforge-release/
更新
1 | cd /etc/yum.repos.d |
webtatic
webtatic 主要供应最新LAMP等软件源, 最新的 repo 地址 Webtatic Yum Repository
安装:
1 | Webtatic EL7 for CentOS/RHEL 7: |
报错
版本不正确
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. 5.10 is not a valid and current release or hasnt been released yet/
removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txt
- 原因
版本不对, centos 是 5.10 的版本,但是发行url里没有这个repo
解决方法
- 下载 aliyun 5 的 repo 文件
- 更改本地的 repo 文件并备份
- 测试运行
参考文章
安装PHP扩展
安装 bcmath
1 | yum --disablerepo="*" --enablerepo="remi" install php56-*-bcmath |
语雀镜像 : repo文件说明使用和常用源 aliyun,remi,webtatic ,点此 提问
repo文件说明使用和常用源 aliyun,remi,webtatic