centos添加源
2015-11-24 17:12
260 查看
centos的本身的源,往往资源比较少!
有时增加一些外部的第三方源会大大提高yum install的便利。
更新方法如下:
先进入yum源配置目录
cd /etc/yum.repos.d
备份系统自带的yum源
mv CentOS-Base.repo CentOS-Base.repo.save
下载yum源
163的yum源:
wget http://mirrors.163.com/.help/CentOS-Base-163.repo
sohu的yum源
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
更新玩yum源后,建议更新一下,使操作立即生效
yum makecache
为CentOS安装EPEL软件仓库
EPEL全称: Extra Packages for Enterprise Linux.传说中最全的yum源
通过以下命令安装:
CentOS 7.x 64-bit
rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel//7/x86_64/e/epel-release-7-5.noarch.rpm
想暂停使用EPEL,在下面的文件中设置enabled=0即可.
vim /etc/yum.repos.d/epel.repo
根据自己的系统版本选择适合自己的rpm包,http://ftp.riken.jp/Linux/fedora/epel//
有时增加一些外部的第三方源会大大提高yum install的便利。
更新方法如下:
先进入yum源配置目录
cd /etc/yum.repos.d
备份系统自带的yum源
mv CentOS-Base.repo CentOS-Base.repo.save
下载yum源
163的yum源:
wget http://mirrors.163.com/.help/CentOS-Base-163.repo
sohu的yum源
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
更新玩yum源后,建议更新一下,使操作立即生效
yum makecache
为CentOS安装EPEL软件仓库
EPEL全称: Extra Packages for Enterprise Linux.传说中最全的yum源
通过以下命令安装:
CentOS 7.x 64-bit
rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel//7/x86_64/e/epel-release-7-5.noarch.rpm
想暂停使用EPEL,在下面的文件中设置enabled=0即可.
vim /etc/yum.repos.d/epel.repo
根据自己的系统版本选择适合自己的rpm包,http://ftp.riken.jp/Linux/fedora/epel//
相关文章推荐
- Centos6 编译安装Python
- 硬盘安装CentOS 6.2以及添加GRUB启动菜单
- CentOS 6.2实战部署Nginx+MySQL+PHP
- CentOS 7系统配置上的变化解析
- CentOS下DB2数据库安装过程详解
- CentOS 6.3下编译安装Ruby 2.0笔记
- 在Centos 5.5 上编译安装mysql 5.5.9
- CentOS 6.5源码安装Erlang教程
- 在CenOS系统下安装和配置Redis数据库的教程
- centos 5.6 升级php到5.3的方法
- CentOS mysql安装系统方法
- centos下安装mysql服务器的方法
- CentOS 5.1 4.6最新官方下载地址列表
- Centos搭建GTK+Codeblock完整版
- CentOS 5.1下跑Mono和Asp.net的实现方法
- centos 安装免费控制面板kloxo步骤
- CentOS服务器+监控宝SNMP监控全攻略分享
- Centos 5下配置https服务器的方法