RHCE authentication: RHEL6 uses a CD to configure the local YUM Source

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.