In order to learn kernel compilation, you need to install some development kits, simply set the disc image to the cost of Yum source, so faster! Here are some basic steps:
1, first mount the CD-ROM to/MNT/CD, MOUNT/DEV/CDROM/MNT/CD, this is not much said;
2, into the/etc/yum.repos.d/directory, the original Yum source backup, I renamed it.
MV Centos-vault.repo Centos-vault.repo.bak
MV Centos-debuginfo.repo Centos-debuginfo.repo.bak
MV Centos-base.repo Centos-base.repo.bak
3. Create a new disc source
Vim Centos-media.repo
# Centos-media.repo
#
# This repo can is used with mounted DVD media, verify the mount point for
# CentOS-6. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put on your DVD and use it with the other repos too:
# yum--enablerepo=c6-media [command]
#
# or for the media repo, does this:
#
# yum--disablerepo=\*--enablerepo=c6-media [command]
[C6-media]
name=centos-$releasever-media
Baseurl=file:///mnt/cd
Gpgcheck=1
Enabled=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6
Save exit
4.Yum Clear all (clear cache)
5. Yum Makecache (Create new cache)
CentOS 6.5 set CD to local Yum source