Redhad6.4 create a local Yum Source

Source: Internet
Author: User

The following operations are based on the root account:

1) "mkdir/yum" is created as a folder to store files in ISO.

2) since my redhad is based on the virtual machine, I need to upload the files in ISO to the virtual machine last time and add them to/Yum/. Finally, my file directory is as follows:

3) create your own repo file and run "Vim/etc/yum. repos. d/local. add content to it (local_yum_source can be named as another name based on your preferences)

[Local_yum_source]
Name = my_local_source
Baseurl = file: // yum
Gpgcheck = 0
Enable = 1

4) modify the yumrepo. py file and run the command "Vim/usr/lib/python2.6/Site-packages/Yum/yumrepo. py"

Remote = URL + '/' + relative
Change
Remote = URL + '/local_yum_source' + relative
5) run the command "Yun clean all" to clear the yum cache.
6) OK. You can run the "yum install software name" command to install your software.

 

Redhad6.4 create a local Yum Source

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.