local server 에 yum package server 만들기
RHN에서 DVD 이미지 다운로드 (rhel-server-5.3-x86_64-dvd.iso)
# mkdir /repo
# mount -o loop rhel-server-5.3-x86_64-dvd.iso /mnt
# cd /mnt; cp -a * /repo
# cd /repo; createrepo .
/etc/yum.repos.d 디렉토리 아래에 dvd.repo 파일 작성
[dvd]
mediaid=1231287803.932941
name=DVD for RHEL5
baseurl=file:///mnt/iso/Server
enabled=1
gpgcheck=0
[dvd-cluster]
mediaid=1231287803.932941
name=DVD for RHEL5 – Cluster
baseurl=file:///mnt/iso/Cluster
enabled=1
gpgcheck=0
[dvd-cluster-storage]
mediaid=1231287803.932941
name=DVD for RHEL5 – ClusterStorage
baseurl=file:///mnt/iso/ClusterStorage
enabled=1
gpgcheck=0
[dvd-vt]
mediaid=1231287803.932941
name=DVD for RHEL5 – VT
baseurl=file:///mnt/iso/VT
enabled=1
gpgcheck=0
다른 클라이언트 시스템에서 웹으로 사용할 수 있도록 하기 위해서는
# cd /var/www/html
# ln -s /repo
# service httpd start
클라이언트 설정은 /etc/yum.repos.d 디렉토리 아래에 repo 파일을 만듬
[RH53-Server]
name= RHEL 5.3 Server Repository
baseurl=http://192.168.123.133/repo/Server
enabled=1
gpgcheck=0
[RH53-Cluster]
name= RHEL 5.3 Cluster Repository
baseurl=http://192.168.123.133/repo/Cluster
enabled=1
gpgcheck=0
[RH53-ClusterStorage]
name= RHEL 5.3 ClusterStorage Repository
baseurl=http://192.168.123.133/repo/ClusterStorage
enabled=1
gpgcheck=0
[RH53-vt]
name= RHEL 5.3 VT Repository
baseurl=http://192.168.123.133/repo/VT
enabled=1
gpgcheck=0
2 Responses
… [Trackback]
[…] Find More Info here on that Topic: nblog.syszone.co.kr/archives/4461 […]
… [Trackback]
[…] Find More Information here on that Topic: nblog.syszone.co.kr/archives/4461 […]