epel
企业版 Linux 附加软件包(EPEL)是一个由特别兴趣小组创建、维护并管理的,针对 红帽企业版 Linux(RHEL)及其衍生发行版(比如 CentOS、Scientific Linux、Oracle Enterprise Linux)的一个高质量附加软件包项目。
EPEL 的软件包通常不会与企业版 Linux 官方源中的软件包发生冲突,或者互相替换文件。EPEL 项目与 Fedora 基本一致,包含完整的构建系统、升级管理器、镜像管理器等等。
Geany
Geany 是一个小巧的使用 GTK+2 开发的跨平台的开源集成开发环境,以 GPL 许可证分发源代码,是免费的自由软件。
0 我的系统环境
[root@BaluRH /]# uname -a
Linux BaluRH 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
1 安装 epel
安装 epel 的原因是,RedHat 原有的 yum 源中可能会没有 Geany(如果已有的话就可以忽略这一步,直接安装 Geany),而 epel 中是有 Geany 可用的。
找了几个不同的 epel 源,发现 Sohu 镜像站访问比较流畅。安装的时候注意选择与操作系统版本对应的 rpm 包。
## 先安装 epel 的 rpm 包:
rpm -ivh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
## 再导入 key:
rpm --import http://mirrors.sohu.com/fedora-epel/RPM-GPG-KEY-EPEL-6
安装好 epel 源后,还要在 repo 中设置 epel 源的优先级:在 [epel]
中添加一行priority=11
cd /etc/yum.repos.d/
vim epel.repo
2 安装 Geany
把 epel 源配置好以后,安装就很简单了
yum install geany
执行 intall 命令后,shell 输出命令:
[root@BaluRH geany]# yum install geany
已加载插件:aliases, changelog, fastestmirror, product-id, refresh-packagekit, security, subscription-manager, verify, versionlock
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
设置安装进程
Loading mirror speeds from cached hostfile
* epel: mirror01.idc.hinet.net
解决依赖关系
--> 执行事务检查
---> Package geany.x86_64 0:1.24.1-1.el6 will be 安装
--> 完成依赖关系计算
依赖关系解决
======================================================================================================================================================================================================
软件包 架构 版本 仓库 大小
======================================================================================================================================================================================================
正在安装:
geany x86_64 1.24.1-1.el6 epel 3.5 M
事务概要
======================================================================================================================================================================================================
Install 1 Package(s)
总下载量:3.5 M
Installed size: 14 M
确定吗?[y/N]:y
下载软件包:
geany-1.24.1-1.el6.x86_64.rpm | 3.5 MB 00:00
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
Warning: RPMDB altered outside of yum.
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
rhn-check-1.0.0.1-16.el6.noarch has missing requires of yum-rhn-plugin >= ('0', '0.9.1', '35')
正在安装 : geany-1.24.1-1.el6.x86_64 1/1
Verifying : geany-1.24.1-1.el6.x86_64 1/1
已安装:
geany.x86_64 0:1.24.1-1.el6
完毕!
[root@BaluRH geany]# cd /
参考文章:
RHEL 6 上安装 yum 以及 epel源
Linux / Unix: Install and Use Geany Integrated Development Environment