YUM server
環境:
os:Enterprise-R4-U8-x86_64
# uname -a
Linux dbatest 2.6.9-89.0.0.0.1.ELlargesmp #1 SMP Tue May 19 05:38:23 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release (oracle的操作系統)
Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
步驟:
# mount /dev/cdrom /mnt -o loop
# cp -r /mnt /usr/local/src/
# rpm -ivh createrepo-0.4.4-2.noarch.rpm
# createrepo /usr/local/src/cdrom1/
1872/1872 - SRPMS/comps-4AS-0.20090520.src.rpm rpm4.rpm.rpmpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
# yum makecache
Making cache files for all metadata files.
This may take a while depending on the speed of this computer
Setting up repositories
dvd 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 718 kB 00:00
dvd : ################################################## 1872/1872
Added 1872 new packages, deleted 0 old in 4.28 seconds
filelists.xml.gz 100% |=========================| 2.2 MB 00:00
dvd : ################################################## 1872/1872
Added 1872 new packages, deleted 0 old in 7.47 seconds
other.xml.gz 100% |=========================| 8.1 MB 00:00
dvd : ################################################## 1872/1872
Added 1872 new packages, deleted 0 old in 11.86 seconds
Metadata Cache Created
阅读(2553) | 评论(0) | 转发(0) |