centOS 第三方YUM源

简介:

1、安装CentOS yum源优先级插件yum-priorities来设置YUM优先级

yum install yum-plugin-priorities.noarch

2、设置CentOS默认yum源的优先级为最高

cd  /etc/yum.repos.d/

vi CentOS-Base.repo    

#在[base]、[updates]、[extras]组下面添加priority=1,在[centosplus]、[contrib]组下面添加priority=2

备注:priority的优先级为1到99,设置为1即优先级最高,1-10为系统保留,第三方yum源的优先级从11-99

3、安装epel yum源

rpm -ivh  http://mirrors.ustc.edu.cn/epel/6/x86_64/epel-release-6-8.noarch.rpm

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

vi /etc/yum.repos.d/epel.repo   #修改epel yum源优先级,priority=11

4、安装rpmforge yum源

rpm -ivh http://repository.it4i.cz/mirrors/repoforge/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

vi  /etc/yum.repos.d/rpmforge.repo  #修改rpmforge yum源优先级,priority=12

5、安装rpmfusion yum源

rpm -ivh http://download1.rpmfusion.org/free/el/updates/testing/6/i386/rpmfusion-free-release-6-0.1.noarch.rpm

vi  /etc/yum.repos.d/rpmfusion-free-updates-testing.repo   #修改rpmfusion yum源优先级,priority=13

6、安装atomic yum源

wget http://www.atomicorp.com/installers/atomic  #下载

sh ./atomic   #安装

vi  /etc/yum.repos.d/atomic.repo  #修改atomic yum源优先级,priority=14

7、更新YUM软件包

yum check-update

8、centOS第三方YUM源大全

1)remi源

http://rpms.famillecollet.com

2)epel源

http://mirrors.ustc.edu.cn/epel

3)rpmforge源

http://repoforge.org/use

4)rpmfusion源

http://mirrors.163.com/rpmfusion

5)centalt源

http://centos.alt.ru/repository

6)Percona源

http://www.percona.com/downloads/percona-release

7)webmin源

需要先建立webmin的下载说明及位置

vim /etc/yum.repos.d/webmin.repo

[Webmin]

name=Webmin Distribution Neutral

baseurl=http://download.webmin.com/download/yum

enabled=1

9、国内YUM源

阿里源:

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

163源:

wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

搜狐源:

wget 



本文转自 80后小菜鸟 51CTO博客,原文链接:http://blog.51cto.com/zhangxinqi/1926770

相关文章
|
13天前
|
缓存 Ubuntu Linux
Linux中yum、rpm、apt-get、wget的区别,yum、rpm、apt-get常用命令,CentOS、Ubuntu中安装wget
通过本文,我们详细了解了 `yum`、`rpm`、`apt-get`和 `wget`的区别、常用命令以及在CentOS和Ubuntu中安装 `wget`的方法。`yum`和 `apt-get`是高层次的包管理器,分别用于RPM系和Debian系发行版,能够自动解决依赖问题;而 `rpm`是低层次的包管理工具,适合处理单个包;`wget`则是一个功能强大的下载工具,适用于各种下载任务。在实际使用中,根据系统类型和任务需求选择合适的工具,可以大大提高工作效率和系统管理的便利性。
80 25
|
2月前
|
缓存 Linux
CentOS-6的iso下载地址镜像yum源
通过上述步骤,您可以成功下载CentOS 6的ISO镜像文件,并配置适用于CentOS 6的YUM源。尽管CentOS 6已经停止更新,但使用这些镜像和YUM源配置,可以继续在需要的环境中使用和维护CentOS 6系统。
533 20
|
2月前
|
Linux
CentOs9 yum源出现404问题
CentOs9-stream yum源出现404问题
|
3月前
|
缓存 Linux
解决CentOS 7停止更新后yum源失效问题【图文教程】
以上步骤完成后,你的 CentOS 7 系统就会使用阿里云的 yum 源,更换yum以后就可以正常使用啦。
2392 2
|
5月前
|
Linux 虚拟化 开发者
一键将CentOs的yum源更换为国内阿里yum源
一键将CentOs的yum源更换为国内阿里yum源
7481 8
|
6月前
|
Linux
centos使用阿里的yum源
centos使用阿里的yum源
|
7月前
|
缓存 Linux 网络安全
解决 CentOS 7 官方 yum 仓库无法使用的最佳实践
【8月更文挑战第18天】若 CentOS 7 的官方 YUM 仓库无法使用,可按以下步骤解决: 1. **检查网络连接**: - 确认服务器能正常上网,可通过访问外部网站或网络诊断测试。 - 检查防火墙设置,避免其阻挡 YUM 的网络访问。 2. **检查 YUM 配置**: - 核实 `/etc/yum.repos.d/` 下的 `CentOS-Base.repo` 文件中仓库地址正确无误。 - 确认配置文件内的 `enabled` 选项设为 `1` 以启用仓库。
2745 0
|
7月前
|
关系型数据库 MySQL Linux
在CentOS上使用yum安装与使用MySQL
在CentOS操作系统上使用yum包管理器安装和配置MySQL数据库的详细步骤,包括下载MySQL的yum源配置、安装MySQL服务、启动和停止服务、设置开机自启动、获取临时密码、修改root用户密码、授权用户以及处理相关问题。同时,文章还包含了一些操作的截图,帮助用户更直观地理解安装和配置过程。
1954 0
在CentOS上使用yum安装与使用MySQL
|
10月前
|
关系型数据库 MySQL Linux
CentOS 7.4下使用yum安装MySQL5.6
CentOS 7.4下使用yum安装MySQL5.6
381 0
|
7月前
|
网络协议 Linux
CentOS7 yum安装报错“Could not resolve host: mirrorlist.centos.org;"之解决办法(换源)
CentOS7 yum安装报错“Could not resolve host: mirrorlist.centos.org; Name or service not known“之解决办法(换源)

热门文章

最新文章