9

RHEL/CentOS 安装 EPEL/Remi 扩展仓库配置小结

 2 years ago
source link: https://wsgzao.github.io/post/epel/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

最近因为需要编译 libip2location,原本计划像之前一样 使用 rpmbuild 制作 Nginx 的 RPM 包 整合为一个 rpm 包,结果按照 IP2Location 官方的步骤愣是没有搞定,只能退而求其次选择了 libip2location-8.0.7-1.el7.remi.src.rpm,简单总结下大部分人经常用到的 EPEL 和这次新出现的 Remi。

2020 年 04 月 06 日 - 初稿

阅读原文 - https://wsgzao.github.io/post/epel/


Repo 仓库介绍

CentOS 默认自带 CentOS-Base.repo 源, 但官方源中去除了很多有版权争议的软件, 而且安装的软件也不是最新的稳定版

Fedora 自带的源中也找不到很多多媒体软件, 如果需要安装, 必需先添加其他源, 如 RPMFusionRPMForge 等第三方软件库

但是除了 EPEL 之外还有很多其他三方软件包, 下面我们介绍各种第三方软件库, 以下软件库适用于与 RHEL 完全兼容的 linux 发行版, 如 CentOS, Fedora, Scientific Linux. Scientific Linux 大家可能有点陌生, 它与 CentOS 类似, 是 RedHat Linux 的克隆版

EPEL 仓库介绍

EPELyum 的一个软件源, 里面包含了许多基本源里没有的软件了, 但在我们在使用 epel 时是需要安装它才可以了, 下文来介绍 CentOS7/RHEL7 安装 EPEL 步骤

EPEL, 即 Extra Packages for Enterprise Linux 的简称, 是为企业级 Linux 提供的一组高质量的额外软件包, 包括但不限于 Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Enterprise Linux (OEL).

安装 EPEL

# 一般用户直接可以在线 yum 安装
yum -y install epel-release

# 手动安装
rpm -ivh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-12.noarch.rpm

# 更新元数据缓存(非必须)
yum clean all && yum makecache

# 验证 EPEL,w3m 是基础包中没有的, 而 epel 包中才有的软件包
yum search w3m

# 在 /etc/yum.repos.d/ 下多了两个 epel 的 repo 文件
ll /etc/yum.repos.d/
epel.repo
epel-testing.repo

针对系统架构选择相应的类型 : http://dl.fedoraproject.org/pub/epel/7/

国内用户可以使用 清华源–EPEL 镜像使用帮助 加速

Remi 源

Remi 源大家或许很少听说, 但是我们强烈推荐, 尤其对于不想编译最新版的 Linux 使用者, 因为 Remi 源中的软件几乎都是最新稳定版.

或许您会怀疑稳定不?

放心吧, 这些都是 Linux 骨灰级的玩家编译好放进源里的, 他们对于系统环境和软件编译参数的熟悉程度毋庸置疑.

Remi 下载地址 : https://rpms.remirepo.net/

Remi SRPMS 下载地址: https://rpms.remirepo.net/SRPMS/

您也需要针对不同的版本号下载.

例如 CentOS 7 添加官方的 Remi

# 安装 remi
rpm -ivh https://rpms.remirepo.net/enterprise/remi-release-7.rpm
# 单独安装某个 rpm
rpm -Uvh https://rpms.remirepo.net/enterprise/7/remi/x86_64/libip2location-8.0.7-1.el7.remi.x86_64.rpm

我在实际解决问题的过程中是通过包搜索引擎逐步找到解决方案的,我做下分享

pkgs.org - Packages Search for Linux and Unix operating systems.

https://pkgs.org/

https://centos.pkgs.org/7/remi-x86_64/libip2location-8.0.7-1.el7.remi.x86_64.rpm.html

RHEL/CentOS/Fedora 各种源 (EPEL、Remi、RPMForge、RPMFusion) 配置

Extra Packages for Enterprise Linux (EPEL)

清华大学–EPEL 镜像使用帮助


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK