#author("2021-04-08T22:40:21+00:00","","")
#author("2026-05-25T18:40:53+09:00","default:admin","admin")
#navi(../)
#Contents
------------------------
** クライアント側の設定 [#e8a60211]

> Yum リポジトリをデフォルト設定から作成したリポジトリサーバに合わせた設定に変更する。

 [root@hoge01 ~]# cd /etc/yum.repos.d/
 [root@hoge01 ~]# cp -ip CentOS-Base.repo CentOS-Base-yyyymmdd.repo
 
 [root@hoge01 ~]# vi CentOS-Base.repo
 # CentOS-Base.repo
 #
 # The mirror system uses the connecting IP address of the client and the
 # update status of each mirror to pick mirrors that are updated to and
 # geographically close to the client.  You should use this for CentOS updates
 # unless you are manually picking other mirrors.
 #
 # If the mirrorlist= does not work for you, as a fall back you can try the
 # remarked out baseurl= line instead.
 #
 #
 
 [base]
 name=CentOS-$releasever - Base
 baseurl=http://対象ホスト名/centos/$releasever/os/$basearch/
 enabled=1
 gpgcheck=1
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
 
 #released updates
 [updates]
 name=CentOS-$releasever - Updates
 baseurl=http://対象ホスト名/centos/$releasever/updates/$basearch/
 enabled=1
 gpgcheck=1
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
 
 #additional packages that may be useful
 [extras]
 name=CentOS-$releasever - Extras
 baseurl=http://対象ホスト名/centos/$releasever/extras/$basearch/
 gpgcheck=1
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
 
 #additional packages that extend functionality of existing packages
 [centosplus]
 name=CentOS-$releasever - Plus
 baseurl=http://対象ホスト名/centos/$releasever/centosplus/$basearch/
 gpgcheck=1
 enabled=1
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
 
 #contrib - packages by Centos Users
 [contrib]
 name=CentOS-$releasever - Contrib
 baseurl=http://対象ホスト名/centos/$releasever/contrib/$basearch/
 gpgcheck=1
 enabled=1
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

** 参考 [#na48ee03]

> [[参考ページ>http://wikiwiki.jp/poiuy/?yum%A5%EA%A5%DD%A5%B8%A5%C8%A5%EA%A5%B5%A1%BC%A5%D0]]
**comment [#r50d1e78]
#comment

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