Red Hat Linux6.0 (RHEL6.0) to build a local yum Library

Source: Internet
Author: User
In the test, we used RedHatlinux6.0 to build the LAMP environment. When we first set up yum, we felt that there was a big difference between version 6.0 and version 5.0. In version 6.0,/etc/yum. repos. d/is an empty directory with no yum. you must create a yum. repo file. The procedure is as follows: 1. First, create a yum. repo under the/etc/yum. repos. d/directory.

In the test, we used RedHat linux6.0 to build the LAMP environment. When we first set up yum, we felt that there was a big difference between version 6.0 and version 5.0. In version 6.0,/etc/yum. repos. d/is an empty directory with no yum. you must create a yum. repo file. The procedure is as follows:

1. First, create a yum. repo file in the/etc/yum. repos. d/directory (the name can also be self-prepared, and the suffix is. repo.

Vim/etc/yum. repos. d/yum. repo

2. Edit the created yum. repo file and add the following content:

[Server]

Name = Server... name of the Server

Baseurl = file: // The file address of the media... yum Library

Enable = 1... apply this server

Gpgcheck = 0 ...... disable verification.
3. Save and exit

4. test whether the yum library is successful

Yum list
Uuid. i686 1.6.1-10. el6 Server
Uuidd. i686 2.17.2-6. el6 Server
For example, the yum library is successfully built.

5. Now you can use yum to help you install the service program.

You can use yum grouplist to view the corresponding service program www.linuxidc.com.

Install the program with yum groupinstall

For example, yum groupinstall Web Server

Generally, when executing yum grouplist, the following Error occurs: Setting up Group Process Error: No group data available.

Use yum clean all to identify the yum server cache and use yum grouplist to try again... OK

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.