I used apt rpm in the past, mainly because there were a considerable number of as3 machines at the time. It was too painful for as3 to install yum, so I gave up yum and used apt, now the system is basically rhel4 or 5, and we plan to maintain a repo on our own to facilitate upgrades and improve security. Record the process.
1. Download iso
2. Create the directory mkdir-p/repo/6/i386/base/repo/6/i386/update
3. Copy the rpm in the CD to the base and create the repo information.
[Root @ yumserver i386] # createrepo base
4. install yum-arch yum install yum-arch
5. Import key
Rpm-import/mnt/RPM-GPG-KEY-redhat-release
Rpm-import/mnt/RPM-GPG-KEY-redhat-beta
6. Create a head File
Yum-arch i386/base
Digesting rpms 100% complete:
Total: 2679
Used: 2679
Src: 0
Writing header.info file
7. Attach a repo File
[Base]
Name = Base
Base url = http://baoz.net/rhel/6/i386/base/
Gpgcheck = 1
Gpgkey = file: // etc/RPM-GPG-KEY-redhat-release