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