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