LoginSignup
16

More than 5 years have passed since last update.

yumで明示的に使用するレポジトリを指定する方法

Last updated at Posted at 2012-04-18

Fedora EpelとかremiとかRPMForgeとかレポジトリを追加したあと意図しないときに使われないようにこれら用の/etc/yum.repos.d/hoge.repoファイルのenableの項目を0に設定し、無効化しておくという管理方法もあるようです。

で、この時に無効化したreposからソフトウェアパッケージをインストールするには

# yum --enablerepo=rpmforge install package-to-install

--enablerepo=で使いたいレポジトリ名を指定すればいい

逆に無効化するには

--disablerepo=で無効化できる。

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
16