LoginSignup
41
33

More than 3 years have passed since last update.

CentOSなどで使う、Remi Repositoryってなんだ?

Posted at

TL;DR

  • Remi Repositoryとは、Remi Colletという方がメンテナンスしているリポジトリ
  • 最新のPHPなどを利用することができる
  • 使う場合は自己責任で

CentOSに関するリポジトリ

前に書いたので、こちらを参照。

Remi Repositoryとは

Remi Repositoryは、Remi Collect氏がメンテナンスされているリポジトリで、FAQによると、以下を目的としたリポジトリです。

Providing the latest versions of the PHP stack, full featured, and some other software, to the Fedora and Enterprise Linux (RHEL, CentOS, Oracle, Scientific Linux, ...) users. It mainly contains :

・packages I also maintains in Fedora
・backports of packages available in Fedora development version
・some packages incompatible with Fedora policy
・some packages in progress before being submitted to Fedora repository
・(nearly) vanilla versions

This is quite away from backporting fixes policy of Enterprise Linux.

Which are the goals of this repository ?

最新のPHPスタックが使え、その他のソフトウェアを、できる限りvanillaな(そのままの)バージョンのまま利用できるようにしています、と。

サポートというか、ご本人に質問、コメントしたりはできるようです。

Where to ask ? How to contact Remi ?

が、基本は利用にあたっては自己責任で、ですね。

Remi Repositoryを使用可能にする

では、Remi Repositoryを使えるように設定してみましょう。

今回試した環境は、こちらです。

$ cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core)

Remi Repositoryの導入手順は、以下を参考にすればOKです。

Repository Configuration

まず、前提としてEPELが必要なので、EPELリポジトリを追加します。

$ sudo yum install epel-release

今回は、EPELはenabledのままとします。

続いて、Remi Repositoryを追加します。

$ sudo yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm

いろんなリポジトリが追加されます。

$ ll /etc/yum.repos.d/remi*
-rw-r--r--. 1 root root  446  9月  6 06:31 /etc/yum.repos.d/remi-glpi91.repo
-rw-r--r--. 1 root root  446  9月  6 06:31 /etc/yum.repos.d/remi-glpi92.repo
-rw-r--r--. 1 root root  446  9月  6 06:31 /etc/yum.repos.d/remi-glpi93.repo
-rw-r--r--. 1 root root  446  9月  6 06:31 /etc/yum.repos.d/remi-glpi94.repo
-rw-r--r--. 1 root root  855  9月  6 06:31 /etc/yum.repos.d/remi-modular.repo
-rw-r--r--. 1 root root  456  9月  6 06:31 /etc/yum.repos.d/remi-php54.repo
-rw-r--r--. 1 root root 1314  9月  6 06:31 /etc/yum.repos.d/remi-php70.repo
-rw-r--r--. 1 root root 1314  9月  6 06:31 /etc/yum.repos.d/remi-php71.repo
-rw-r--r--. 1 root root 1314  9月  6 06:31 /etc/yum.repos.d/remi-php72.repo
-rw-r--r--. 1 root root 1314  9月  6 06:31 /etc/yum.repos.d/remi-php73.repo
-rw-r--r--. 1 root root 1314  9月  6 06:31 /etc/yum.repos.d/remi-php74.repo
-rw-r--r--. 1 root root  750  9月  6 06:31 /etc/yum.repos.d/remi-safe.repo
-rw-r--r--. 1 root root 2605  9月  6 06:31 /etc/yum.repos.d/remi.repo

ちなみに、有効になっているのはremi-safeと呼ばれるものだけです。

$ grep enabled=1 /etc/yum.repos.d/remi*
/etc/yum.repos.d/remi-safe.repo:enabled=1

remi-safeというのは、OSのディストリビューションのパッケージを上書き/置き換えしないリポジトリです。EPELでも未提供のものが入っているようです。

The "remi-safe" repository ?

ということは、それ以外のデフォルトで有効化されていないリポジトリは上書き/置き換えの可能性があると…。

確認してみましょう。yumでRedisのインストールを試みます。

$ sudo yum install redis

EPELにあるものが候補としてリストアップされます。

=====================================================================================================================================================================
 Package                                 Arch                                  Version                                     Repository                           Size
=====================================================================================================================================================================
Installing:
 redis                                   x86_64                                3.2.12-2.el7                                epel                                544 k
Installing for dependencies:
 jemalloc                                x86_64                                3.6.0-1.el7                                 epel                                105 k

Transaction Summary
=====================================================================================================================================================================
Install  1 Package (+1 Dependent package)

バージョンがちょっと古いですね。

remiリポジトリを使用してみましょう。

$ sudo yum --enablerepo=remi install redis

remiリポジトリから、5系のRedisがリストアップされるようになります。

=====================================================================================================================================================================
 Package                             Arch                                 Version                                           Repository                          Size
=====================================================================================================================================================================
Installing:
 redis                               x86_64                               5.0.5-1.el7.remi                                  remi                               922 k

Transaction Summary
=====================================================================================================================================================================
Install  1 Package
41
33
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
41
33