1 Download Grup4dos, unzip the downloaded compression package, copy the GRLDR and menu.list below the c:\\ root directory.
2 modify boot.ini, add C:/grldr = "Install CentOS" at the end of the document
3 Modify Menu.list, add on the last side of the document
Title Install CentOS
Kernel (hd0, 1)/isolinux/vmlinuz
INITRD (hd0,1)/isolinux/initrd.img
Note: here (hd0,0) represents the first partition of the first IDE hard disk (that is, the partition where the Isolinux directory is located) and modifies the hard drive parameters according to your needs.
Create a local Yum warehouse
To avoid the possibility of incomplete packages, slow downloads, and network failures from downloading packages from the network, we strongly recommend that you use local DVD/CD ISO to create a yum warehouse that is quick to install and ensures that all packages are installed smoothly.
If you have a yum warehouse in your local area network, you can use it directly, you do not need to repeat the following steps to create it.
The following actions are performed after you have installed the Rhel/centos system.
Install Createrepo tools from CD-ROM or existing YUM warehouses, and network download tools wget:
# RPM-IVH createrepo-x.y.z.rpm
# RPM-IVH wget-x.y.z.rpm
The Createrepo command is used to generate some of the information necessary for the Yum warehouse, which is stored under the repodata/directory, and you will see what it does when you open it.
Use ISO document to make Yum Warehouse
DVD ISO
If you are using a DVD disc, you can mount the disc directly and then make the Yum Warehouse:
# mkdir/mnt/dvd/
# mount/dev/cdrom/mnt/dvd/
# cd/mnt
# Createrepo.
If you are using the official DVD ISO, you will need to copy it to the system and mount the Yum warehouse after mounting:
# mkdir/mnt/dvd/
# Mount-o Loop/root/rhel5.1-dvd.iso/mnt/dvd
# cd/mnt
# Createrepo.
CD ISO
If you are using more than one CD ISO file, you need to copy it to the system before you mount the Yum warehouse.
There are several ISO to create a few directories, and the corresponding ISO mount up:
# Mkdir-p/mnt/{1,2,3,4,5,6}
# Mount-o Loop RHEL5.1-DISC1.ISO/MNT/1
# Mount-o Loop RHEL5.1-DISC2.ISO/MNT/2
# Mount-o Loop RHEL5.1-DISC3.ISO/MNT/3
# Mount-o Loop RHEL5.1-DISC4.ISO/MNT/4
# Mount-o Loop RHEL5.1-DISC5.ISO/MNT/5
To create a yum warehouse:
# cd/mnt/
# Createrepo.
Define Yum Warehouse
Create the definition file for the Yum Warehouse:/etc/yum.repos.d/dvdiso.repo, and then add the following:
[Dvdiso]
Name=dvd ISO
baseurl=file:///mnt/
Enabled=1
Gpgcheck=0
Test Yum Warehouse
It is strongly recommended that the ' Yum clean All ' command be emptied of all yum metadata, and the latest warehouse information be retrieved:
# Yum Clean All
# Yum List
If you can see the name of the package in the warehouse that you just made in the output of the ' Yum List ' command, that's OK. Try installing a package to see if it's successful:
# yum Install cyrus-sasl.i386
If this is the x86_64 platform, change the following i386 to x86_64:
# yum Install cyrus-sasl.x86_64
If the installation is successful, it means that the Yum warehouse and the RPM package are fine.
Turn from: Http://code.google.com/p/iredmail/wiki/Installation_zh.