Linux local Yum Source creation

Source: Internet
Author: User

1. Copy the Packages folder in centos6.5 to/usr/local/yum/packages

Cp/mnt/cdrom/packages//usr/local/yum/packages-a

2, installation create Yum Source command Createrepo, it relies on pytho and other related packages.

RPM-IVH createrepo-0.9.9-18.el6.noarch.rpm python*--force--nodeps

3, create the Yum source, will be produced under the Packages Repodata directory

createrepo/usr/local/yum/packages/

4. No comps-xx-xml files under the source path created using the Createrepo command (used for Yum Group)

You need to copy the Comps--xx-xml file in the CD

cp/mnt/cdrom/repodata/b4e0b9342ef85d3059ff095fa7f140f654c2cb492837de689a58c581207d963 2-C6-X86_64-COMPS.XML/USR /local/yum/(centos6.5 version)

5. Create a Yum group profile path

650) this.width=650; "title=" 2.jpg "src=" Http://s3.51cto.com/wyfs02/M00/6E/D3/wKiom1WJGKzCp3NYAAFPCFugzk8527.jpg " alt= "Wkiom1wjgkzcp3nyaafpcfugzk8527.jpg"/>

6. Modify the Yum configuration file/etc/yum.repos.d/

Centos-base.repo.bak Centos-debuginfo.repo Centos-media.repo.bak Centos-vault.repo.bak Local.repo back up the Yum network source and create the Local.repo. Add the following content

[Local]
Name=loacl
Baseurl=file:///usr/local/yum/packages
Enable=1
Gpgcheck=0

7. Empty the Yum cache

Yum Clean All

8. Test and install the software
~                                                                                                                                                                                       
~

This article is from the "Linux Learning:" blog, be sure to keep this source http://haozi4263.blog.51cto.com/2791641/1664640

Linux local Yum Source creation

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.