LoginSignup
5
7

More than 5 years have passed since last update.

CentOS6.6にEPELとRemiをyumに追加する

Posted at

新規でCentOSをインストールしたら必ずやってることでいつも忘れるのでメモ代わりに EPELとRemiをyumリポジトリに追加する。

リポジトリインストール

EPELはyumコマンドで楽々インストール

yum install epel-release

続いてRemiのインストール 初めにGPGキーをインポート

rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi

次にインストール

rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

インストールしたEPELとRemiの初期設定を行います。 デフォルト無効にしておいて必要なときだけ使用するように変更していきます。 enabledが0に変更する。

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

使い方

yumのオプションで適用するリポジトリを指定するだけで使用できます。

yum --enablerepo=[remi or epel] info php
5
7
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
5
7