| メインページ > CentOSで自宅サーバー構築 > yum用リポジトリ追加(CentOS6) |
標準リポジトリで提供されないパッケージをyumでインストールできるようにする。
[root@host3 ~]# yum -y install wget
[root@host3 ~]# wget http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-5.noarch.rpm [root@host3 ~]# rpm -ivh epel-release-6-5.noarch.rpm [root@host3 ~]# rm -f epel-release-6-5.noarch.rpm ダウンロードしたファイル削除 [root@host3 ~]# vi /etc/yum.repos.d/epel.repo enabled=0 ←6行目:変更
上記リポジトリを使用してインストールする場合は、以下のようにコマンド入力
[root@host3 ~]# yum --enablerepo=epel install [パッケージ名]