yum update でレポジトリを一時的に追加する方法

忘れるのでメモ。

レポジトリの場所
/etc/yum.repos.d/

方法1
例えばepel.repoの場合、
enabled=0

enabled=1
に変更する

yum update すると↓のような感じでepelが追加される

[root ~]# yum install gearmand
Loaded plugins: fastestmirror, priorities
Repository remi is listed more than once in the configuration
Repository remi-test is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * addons: ftp.iij.ad.jp
 * base: ftp.iij.ad.jp
 * epel: ftp.kddilabs.jp
 * extras: ftp.iij.ad.jp
 * updates: ftp.iij.ad.jp

終わったら
enabled=0
に戻す

方法2
yum --enablerepo=epel install gearmand