现在的位置: 首页 > 综合 > 正文

RedHat/CentOS 为yum安装remi源

2014年09月05日 ⁄ 综合 ⁄ 共 2652字 ⁄ 字号 评论关闭

CentOS,RedHat配置EPEL/REMI YUM源

企业版 Linux 附加软件包(EPEL)

EPEL 项目主页地址https://fedoraproject.org/wiki/EPEL/zh-cn

EPEL只面向企业版RedHat 和CentOS,目前有版本5和版本6的支持,安装也很简单.

EPEL 包含一个叫做’epel-release’的包,这个包包含了 EPEL 源的 gpg 密钥和软件源信息。您可以通过 yum 安装到您的企业版 Linux 发行版上。除了 epel-release 源,还有一个叫做’epel-testing’的源,这个源包含最新的测试软件包,其版本很新但是安装有风险,请自行斟酌。

注意: 有些第三方软件源需要 EPEL 的’epel-testing’源来安装依赖组件,请务必在系统设置中启用本源。 (相关配置文件位于:/etc/yum.repos.d/epel-testing.repo)

CentOS6/RedHat6系列安装:

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm

CentOS5/RedHat5系列安装:

rpm -ivh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

安装后编辑epel.repo

vi /etc/yum.repos.d/epel.repo

修改  enabled=1

 

扩展推荐:REMI源

地址:http://rpms.famillecollet.com/

REMI源有最新版本的PHP或MYSQL等软件,速度也不错,remi依赖于EPEL源

Fedora版本

Fedora
16 (Verne)

安装命令: rpm -ivh http://rpms.famillecollet.com/remi-release-16.rpm

Fedora
15 (Lovelock)

安装命令: rpm -ivh http://rpms.famillecollet.com/remi-release-15.rpm

企业版Linux (RHEL / CentOS / 及其他分支克隆版本)

Enterprise
Linux 6
 (RedHat6/CentOS6):

安装命令: rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

Enterprise
Linux 5
 (RedHat5/CentOS5):

安装命令: rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

安装后编辑remi.repo

vi /etc/yum.repos.d/remi.repo

修改  enabled=1

1.删除redhat原有的yum 
rpm -aq|grep yum|xargs rpm -e --nodeps 

2.下载yum安装文件 

注意,如果下载时找不到文件,就登录到:http://mirrors.163.com/centos/6/os/x86_64/
上查找相应的文件。然后再下载。

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.27-14.el6.centos.noarch.rpm 

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm 

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm 

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm 

yum clean All
yum makecache
yum install vim #testing
yum list mysql mysql-server
yum install mysql mysql-server
service mysqld start/stop/restart
mysqladmin -u root password 'new-password'
### 创建utf-8, gbk 编码数据库
create database test2 default character set utf8 collate utf8_general_ci;

GBK: create database test2 DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;

UTF8: CREATE DATABASE `test2` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

# install mysql-python1.2.5
1. yum install python-devel mysql-devel zlib-devel openssl-devel
2. python setup.py build #Mysql-python source code build
python setup.py install


#install zmq, zmq-python
./configure, make , make check, make install
easy_install pyzmq
#install pycurl, curl
./configure, make, make install
pyCurl:
python setup.py build, install

#yum install curl
#easy_install 
#python setup.py
install --curl-config=/usr/local/bin/curl-config


抱歉!评论已关闭.