CentOS yum源 部署
2015-09-16 14:39
267 查看
CentOS安装yum源
一般的软件都会提供一个.rpm的软件包,使用rpm指令安装了这个包后会自动添加一个yum仓库源,之后用yum就可以安装该软件了。
安装rpm包
rpm -ivh http://repo.somesite.com/somesoftware.rpm
移除rpm包
rpm -e packagename
EPEL
啥也不说,除了自带的centos源,估计是必装的一个源。
介绍
https:// href="http://www.linuxidc.com/topicnews.aspx?tid=5" target=_blank>Fedoraproject.org/wiki/EPEL/zh-cn
安装
1、yum安装
yum install epel-release
根据查找结果安装
2、rpm安装
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
如果你使用了CentOS6地址改成https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
RPMForge
介绍
https://wiki.centos.org/AdditionalResources/Repositories/RPMForge
rpm包目录
http://pkgs.repoforge.org/rpmforge-release/
其他的源介绍(CentOS)
https://wiki.centos.org/AdditionalResources/Repositories
Yum Priorities
如果安装的源多了,那么就需要这个插件了,用于yum命令软件包搜索时使用源的优先级。
安装
yum install yum-priorities
配置
打开/etc/yum/pluginconf.d/priorities.conf
vi /etc/yum/pluginconf.d/priorities.conf
确保文件内包含enabled=1,如果要禁用yum优先级插件,改成enabled=0。
[main]
enabled=1
/etc/yum.repos.d/*.repo文件里添加优先级配置。优先级由 1 ~ 99 的 99 个数表示,1 的优先级最高。优先级小的源即使有某软件的较新版本,如果优先级高的源中没有,在启用该插件的情况下,系统也无法安装/升级到该较新版本。
priority=1
更多YUM相关教程见以下内容:
RedHat 6.2 Linux修改yum源免费使用CentOS源 http://www.linuxidc.com/Linux/2013-07/87383.htm
配置EPEL YUM源 http://www.linuxidc.com/Linux/2012-10/71850.htm
Redhat 本地yum源配置 http://www.linuxidc.com/Linux/2012-11/75127.htm
yum的配置文件说明 http://www.linuxidc.com/Linux/2013-04/83298.htm
RedHat 6.1下安装yum(图文) http://www.linuxidc.com/Linux/2013-06/86535.htm
YUM 安装及清理 http://www.linuxidc.com/Linux/2013-07/87163.htm
CentOS 6.4上搭建yum本地源 http://www.linuxidc.com/Linux/2014-07/104533.htm
更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14
一般的软件都会提供一个.rpm的软件包,使用rpm指令安装了这个包后会自动添加一个yum仓库源,之后用yum就可以安装该软件了。
安装rpm包
rpm -ivh http://repo.somesite.com/somesoftware.rpm
移除rpm包
rpm -e packagename
EPEL
啥也不说,除了自带的centos源,估计是必装的一个源。
介绍
https:// href="http://www.linuxidc.com/topicnews.aspx?tid=5" target=_blank>Fedoraproject.org/wiki/EPEL/zh-cn
安装
1、yum安装
yum install epel-release
根据查找结果安装
2、rpm安装
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
如果你使用了CentOS6地址改成https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
RPMForge
介绍
https://wiki.centos.org/AdditionalResources/Repositories/RPMForge
rpm包目录
http://pkgs.repoforge.org/rpmforge-release/
其他的源介绍(CentOS)
https://wiki.centos.org/AdditionalResources/Repositories
Yum Priorities
如果安装的源多了,那么就需要这个插件了,用于yum命令软件包搜索时使用源的优先级。
安装
yum install yum-priorities
配置
打开/etc/yum/pluginconf.d/priorities.conf
vi /etc/yum/pluginconf.d/priorities.conf
确保文件内包含enabled=1,如果要禁用yum优先级插件,改成enabled=0。
[main]
enabled=1
/etc/yum.repos.d/*.repo文件里添加优先级配置。优先级由 1 ~ 99 的 99 个数表示,1 的优先级最高。优先级小的源即使有某软件的较新版本,如果优先级高的源中没有,在启用该插件的情况下,系统也无法安装/升级到该较新版本。
priority=1
更多YUM相关教程见以下内容:
RedHat 6.2 Linux修改yum源免费使用CentOS源 http://www.linuxidc.com/Linux/2013-07/87383.htm
配置EPEL YUM源 http://www.linuxidc.com/Linux/2012-10/71850.htm
Redhat 本地yum源配置 http://www.linuxidc.com/Linux/2012-11/75127.htm
yum的配置文件说明 http://www.linuxidc.com/Linux/2013-04/83298.htm
RedHat 6.1下安装yum(图文) http://www.linuxidc.com/Linux/2013-06/86535.htm
YUM 安装及清理 http://www.linuxidc.com/Linux/2013-07/87163.htm
CentOS 6.4上搭建yum本地源 http://www.linuxidc.com/Linux/2014-07/104533.htm
更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14
相关文章推荐
- CentOS下常用的 19 条命令
- linux系统查看外网IP
- Cobbler自动批量部署CentOS 6和CentOS 7
- 于linux已安装moodle
- 基于linux的bond技术
- 总结之:CentOS6.5下openssl加密解密及CA自签颁发证书详解
- Linux系统:开放源代码应用程序的编译与安装
- Ubuntu linux 环境基本使用
- linux信号掩码
- Linux中history输出格式的定制
- Linux系统中一些实用的快捷键
- 超实用的Linux/Unix快捷键大汇总
- linux(centos)搭建SVN服务器
- Linux开启ssh服务
- linux系统下怎么安装.deb文件
- linux下echo命令详解
- 使用 Linux 系统调用的内核命令【转】
- Linux查看和结束进程命令详解
- linux命令大全
- Linux安装svn客户端