1. mount the RHEL6 CD image to the VM. the system automatically mounts the CD to the system. RHEL_6.1x86_64 on the desktop is the CD after the system automatically mounts. the default automatic Mount directory is under/misc/cd. You can also mount the optical drive to another directory to configure the local YUM source, and copy the content of the cd to the hard disk, use the hard disk directory to configure local YUM4. modify the YUM configuration file and configure the local YUM source. In RHEL6, the configuration file needs to be created by yourself.
1. Mount the RHEL 6 CD image to the VM
2. the system automatically mounts the CD to the system. RHEL_6.1 x86_64 on the desktop is the CD after the system automatically mounts the CD.
3. the default automatic Mount directory is under/misc/cd. You can also mount the optical drive to another directory to configure the local YUM source, and copy the content of the cd to the hard disk, use the hard disk directory to configure local YUM
4. modify the configuration file of YUM to configure the local YUM source. In RHEL6, the configuration file needs to be created by yourself. In RHEL5, you can directly modify the rhel-debug.repo.
Create a configuration file in/etc/yum. repos. d/. The file name is arbitrary but must end with. repo. Here the local. repo file name is used as the file name.
Write in local. repo
[Base] is the name of the yum repository. It can be any name but cannot exceed 10 bytes. If it exceeds 10 bytes, it is ignored.
Baseurl is the address provided by the yum source, which can be a directory, ftp, or http. Now we use the directory as the address of the yum source, in the format of file ://, after the directory is the specific location/misc/cd, if the ftp address can be directly written ftp directory, for example: ftp://xxx.xxx.xxx.xxx/var/pub can also rely on the corresponding directory, for example, if you create a directory/rhel6 and copy all the files in the CD to the directory, then your baseur can be written as baseurl = file: // rhel6
If enable is enabled or not, 0 indicates disabled, and 1 indicates enabled.
Gpgcheck is the key used to check GPG. It is included in the CD and can be copied to the local directory for loading. If it is not enabled, 0 indicates that it is not enabled, and 1 indicates that it is enabled.