Skip to content

Instantly share code, notes, and snippets.

@CLCL
Created July 28, 2015 04:21
Show Gist options
  • Save CLCL/f7a2c1e0181169a43438 to your computer and use it in GitHub Desktop.
Save CLCL/f7a2c1e0181169a43438 to your computer and use it in GitHub Desktop.
CentOS 6標準でEPELリポジトリ参照用パッケージを入れる

CentOS 6で、追加のリポジトリのEPELを使うことがよくありますね。tmux入れたり、grance入れたり、proftpd入れたり(今更FTPなのは察してください)、標準の状態でyumって入らない時はEPELに入っていることが多いですのでよく使いますね。

で、EPELなんだが、いつの間にか標準のパッケージになってたというやつ。

# yum -y install epel-release
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: ftp.iij.ad.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:6-8 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================
 Package          Arch     Version    Repository   Size
========================================================
Installing:
 epel-release     noarch   6-8        extras       14 k

Transaction Summary
========================================================
Install       1 Package(s)

Total download size: 14 k
Installed size: 22 k
Downloading Packages:
epel-release-6-8.noarch.rpm           |  14 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : epel-release-6-8.noarch               1/1
  Verifying  : epel-release-6-8.noarch               1/1

Installed:
  epel-release.noarch 0:6-8

Complete!
#

適宜、yumのデフォルトで参照されないように書き換えてもいいですね。

# sed -i -e '/^enabled.*=.*1/s/1/0/' /etc/yum.repos.d/epel.repo

この場合、yum --enablerepo=epel install tmuxとかします。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment