1. REPO 서버 설정
다운로드 : http://createrepo.baseurl.org/download/
# cd /usr/share
# wget http://createrepo.baseurl.org/download/createrepo-0.9.9-1.src.rpm
# rpmbuild --rebuild createrepo-0.9.9-1.src.rpm
# cd /root/rpmbuild/RPMS/noarch/
# yum -y localinstall createrepo-0.9.9-1.noarch.rpm
# mkdir -p /var/www/html/isbyeon/6/os/x86_64
# mkdir -p /var/www/html/isbyeon/6/updates/x86_64
# mount -o loop -t iso9660 CentOS-6.2-x86_64-bin-DVD1.iso /mnt
# cp /mnt/Packages/* /var/www/html/isbyeon/6.2/os/x86_64/
# umount /mnt
# createrepo /var/www/html/isbyeon/6/os/x86_64
Spawning worker 0 with 3856 pkgs
Worker 0:
Worker 0: iso-8859-1 encoding on Trond Eivind Glomsr? <teg@redhat.com>
Worker 0:
Worker 0:
Worker 0: iso-8859-1 encoding on Trond Eivind Glomsr? <teg@redhat.com>
Worker 0:
Worker 0:
Worker 0: iso-8859-1 encoding on Trond Eivind Glomsr? <teg@redhat.com> 2.0-7
Worker 0:
Worker 0:
Worker 0: iso-8859-1 encoding on Ville Skytt?<ville.skytta@iki.fi> - 2.8.2-2
Worker 0:
Worker 0:
Worker 0: iso-8859-1 encoding on Trond Eivind Glomsr? <teg@redhat.com>
Worker 0:
Worker 0:
Worker 0: iso-8859-1 encoding on Trond Eivind Glomsr? <teg@redhat.com>
Worker 0:
Workers Finished
Gathering worker results
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
# createrepo /var/www/html/isbyeon/6/updates/x86_64
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
# service httpd restart;chkconfig httpd on
웹페이지 접속 후 확인
http://repo.kobic.kr/isbyeon
2. 클라이언트 설정 및 확인
# cd /etc/yum.repos.d/
# cat > isbyeon.repo
# base packages for RHEL
======================================================================
[isbyeon_base]
name=CentOS $releasever
baseurl=http://repo.kobic.kr/isbyeon/$releasever/os/$basearch/
gpgcheck=1
[isbyeon_updates]
name=CentOS $releasever
baseurl=http://repo.kobic.kr/isbyeon/$releasever/updates/$basearch/
gpgcheck=1
======================================================================
# yum list
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
'Linux > YUM, RPM' 카테고리의 다른 글
[Linux] Package xxx.rpm is not signed (0) | 2013.08.01 |
---|---|
[YUM ERROR] Error: database disk image is malformed (0) | 2012.10.31 |
RPM(Redhat Package Manager) 사용 방법 (0) | 2012.05.11 |
YUM(Yellowdog Updater,Modified) (0) | 2012.04.26 |
최근댓글