提供:すだちネットWiki
移動: 案内, 検索

yum用リポジトリ追加(CentOS6)

メインページCentOSで自宅サーバー構築yum用リポジトリ追加(CentOS6)

標準リポジトリで提供されないパッケージをyumでインストールできるようにする。

wgetコマンド追加

[root@host3 ~]# yum -y install wget

EPELを追加

[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 [パッケージ名]
案内
ツールボックス
PR
個人用ツール