Yum mechanism of linuxRHEL

Source: Internet
Author: User
The yum mechanism of linuxRHEL is different from that of other linux distributions. RHEL installs software using rpm or tar packages. ubuntu is the most popular among many linux distributions, it has its own software center, and RedHat has its own RHN, but it is charged, how to build its own local... the yum mechanism of linux RHEL is different from that of other linux distributions. RHEL installs software using rpm or tar packages. ubuntu is the most popular among many linux distributions, it has its own software center and RedHat has its own RHN, but it is charged. how to build its own local installation source? This is the first question I need to consider every time I do the system. The following shows how I installed the source. When www.2cto.com is installed with an rpm package, there is a dependency between the package and the package, which makes the installation inconvenient. Fortunately, the yum mechanism is used to control the package and overcome the dependency of the package. In several steps. 1. copy all rpm packages to a directory, put them in/mnt/local/. 2. install the createrepo package, rpm-ivh createrepo-0.9.8-4.el6.noarch 3, createrepo-v/mnt/local #-v specifies then in/etc/yum. repos. d/create the yum repository configuration file. end example of repo: # vi local. repo [base] # yum repository description name = local # repository name, which can be set to any one. here, it is just for me to view baseurl = file:///mnt/local/ # Rpm package path, that is, the installation source gpgcheck = 0 pointed to by yum # Run # yum clean all after it is not detected. of course, I can also use the RedHat system image as the yum source, method: mount the image file to the Directory, for example, mount-o loop-t iso9660 rhel6.iso/mnt/iso. add [server] name = RHEL baseurl = to the repo file file:///mnt/iso/ Gpgcheck = 0 # yum clean all

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.