Redhat AS4 use yum
1. down rpm package
centos-yumconf-4-4.5.noarch.rpm
python-elementtree-1.2.6-7.el4.rf.i386.rpm
python-sqlite-0.5.0-1.2.el4.rf.i386.rpm
python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
sqlite-2.8.17-1.el4.rf.i386.rpm
yum-2.4.2-0.4.el4.rf.noarch.rpm
createrepo-0.4.6-1.el4.rf.noarch.rpm
2. install all rpm package
rpm -ivh *.rpm
3.create dir and mount iso
mkdir /mnt/rhelas4
mkdir /mnt/repodata
mount -o loop rhel4u4-i386-dvd.iso /mnt/rhelas4
ln -s /mnt/rhelas4/RedHat/RPMS/*.rpm /mnt/repodata
createrepo /mnt/repodata 创建repomd.xml
4.modify rhel4u4.repo
vi /etc/yum.repo.d/rhel4u4.repo
[rhel4u4]
name=Red Hat 4U4
baseurl=file:///mnt/repodata
enabled=1
gpgcheck=1
gpgkey=file:///mnt/rhelas4/RPM-GPG-KEY
阅读(799) | 评论(0) | 转发(0) |