* 標準・外部レポジトリの利用 [#t2c41786]

*** 設定があるレポジトリ [#a6ba27a3]
 $ ls /etc/yum.repos.d/*.repo
 /etc/yum.repos.d/CentOS-Base.repo       /etc/yum.repos.d/CentOS-Media.repo  /etc/yum.repos.d/rpmforge.repo
 /etc/yum.repos.d/CentOS-Debuginfo.repo  /etc/yum.repos.d/CentOS-Vault.repo
外部レポジトリはXXX.repoファイルでenabled = 0になっている。
*** 標準レポジトリ一覧 [#afda1a92]
 $ yum repolist
 Loaded plugins: fastestmirror
 base                               | 2.1 kB     00:00    
 extras                             | 2.1 kB     00:00    
 updates                            | 1.9 kB     00:00    
 repo id         repo name                   status
 base            CentOS-5 - Base             enabled: 3,535
 extras          CentOS-5 - Extras           enabled:   299
 updates         CentOS-5 - Updates          enabled:   765
 repolist: 4,599

*** 外部レポジトリも含めたレポジトリ一覧 [#n29f56a1]
 $ yum repolist --enablerepo=rpmforge
 Loaded plugins: fastestmirror
 base                                                         | 2.1 kB     00:00     
 extras                                                       | 2.1 kB     00:00     
 rpmforge                                                     | 1.1 kB     00:00     
 updates                                                      | 1.9 kB     00:00     
 repo id         repo name                                            status
 base            CentOS-5 - Base                                      enabled:  3,535
 extras          CentOS-5 - Extras                                    enabled:    299
 rpmforge        Red Hat Enterprise 5 - RPMforge.net - dag            enabled: 10,695
 updates         CentOS-5 - Updates                                   enabled:    765
 repolist: 15,294

*** 外部リポジトリを追加する [#c53bb831]
 $ wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
 $ rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key # パッケージ検証のための鍵の追加
 $ yum install jenkins                                              # パッケージの追加

*** 外部レポジトリも含めた中からパッケージをインストールする [#y1f3bbbd]
 $ yum install git --enablerepo=rpmforge

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS