ISOをリポジトリにし、直接CDROM(DVD)からyumでダウンロードする場合は、以下のように設定する。 ①リポジトリを参照するファイルを作成する(<適当な名前>.repo) # vim /etc/yum.repos.d/dvd.repo TIPS: 2行目:これも適当でOK。ただ、自分で管理する場合は何のリポジトリなのかわかりやすいように明記するべき。 3行目:リポジトリのあるパス。 4行目:1で有効、0だと無効。 5行目:GPG-KEYのチェック機能。1で有効、0だと無効。 ISOのマウントについては以下のリンク先で。
例) # yum --disablerepo=\* --enablerepo=Server search http Loaded plugins: product-id, subscription-manager Updating certificate-based repositories. Server | 4.0 kB 00:00 ... Server/primary_db | 3.1 MB 00:00 ... ======================================================== N/S Matched: httpd ======================================================== httpd.x86_64 : Apache HTTP Server httpd-devel.i686 : Development interfaces for the Apache HTTP server httpd-devel.x86_64 : Development interfaces for the Apache HTTP server httpd-manual.noarch : Documentation for the Apache HTTP server httpd-tools.x86_64 : Tools for use with the Apache HTTP Server mod_dav_svn.x86_64 : Apache httpd module for Subversion server mod_dnssd.x86_64 : An Apache HTTPD module which adds Zeroconf support Name and summary matches only, use "search all" for everything. という形で表示されたら成功。 # yum --disablerepo=\* --enablerepo=Server install perl |