仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 685|回复: 8
打印 上一主题 下一主题

[CentOS(社区)] 给大家带来CentOS6.5利用createrepo搭建当地源

[复制链接]
冷月葬花魂 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-1-14 20:15:02 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!

  • 当地搭建当地yum源接纳的rpm全体来自CentOS-6.5-bin-DVD1&DVD2;



  • 我的是在假造机情况装置,先反省我的操纵体系版本:

[size=1em][size=1em][adam@ultraera~]$uname-m
[size=1em]i686

[size=1em][adam@ultraera~]$cat/etc/centos-release

[size=1em]CentOSrelease6.5(Final)



3.由于设置当地yum源必要修正/目次下的文件及/etc上面的设置文件,倡议改换到root用户;“su-”
4.起首在当地创立一个寄存rpm包的目次,我这里选择间接在/下创立,你能够自界说:
[size=1em][size=1em][root@ultraera~]#mkdir/yumload
[size=1em][root@ultraera~]#cd/yumload/

[size=1em][root@ultraerayumload]#pwd

[size=1em]/yumload



5.接上去把两张DVD中的Packages中的rpm包全体拷贝到/yumload:
[size=1em][size=1em][root@ultraerayumload]#cp/media/CentOS_6.5_Final/Packages/*./
[size=1em][root@ultraerayumload]#ll./*.rpm|wc-l#两张DVD一共有的rpm包的数目;

[size=1em]4802




6.然后利用createrepo指令创立当地repo,CentOS6默许不装置createrepo,必要手动装置,不妨,在我们的DVD光盘中已集成了createrepo的包,假如报必要依附装置其他包的利用,顺次装置便可。
[size=1em][size=1em][root@ultraerayumload]#rpm-ivhcreaterepo-0.9.9-18.el6.noarch.rpm#装置createrepo
[size=1em][root@ultraerayumload]#createrepo/yumload/#创立yum堆栈,耐烦守候,能够加-v参数列出实行信息

[size=1em]Spawningworker0with4802pkgs

[size=1em]WorkersFinished
[size=1em]Gatheringworkerresults
[size=1em]
[size=1em]SavingPrimarymetadata
[size=1em]Savingfilelistsmetadata
[size=1em]Savingothermetadata
[size=1em]GeneratingsqliteDBs
[size=1em]SqliteDBscomplete
[size=1em][root@ultraerayumload]#



7.在/etc/yum.repo.d/下创立一个repo文件,文件名能够自界说,但必定要以repo开头,并增加一下内容:
<divstyle="padding:0px;margin:0px;color:rgb(80,80,80);font-family:宋体,ArialNarrow,arial,serif;font-size:14px;line-height:28px;"><divclass="syntaxhighlighterbash"id="highlighter_709250"style="width:720px;padding:0px!important;margin:0.3em0px!important;border-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow-y:visible!important;overflow-x:auto!important;position:relative!important;right:auto!important;top:auto!important;vertical-align:baseline!important;box-sizing:content-box!important;font-family:Consolas,BitstreamVeraSansMono,CourierNew,Courier,monospace!important;font-size:1em!important;min-height:inherit!important;background-image:none!important;background-attachment:initial!important;background-size:initial!important;background-origin:initial!important;background-clip:initial!important;background-position:initial!important;background-repeat:initial!important;"><divclass="container"style="padding:0px!important;margin:0px!important;border-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow:visible!important;position:relative!important;right:auto!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;font-size:1em!important;min-height:inherit!important;background:none!important;">[size=1em][ultraera.org]#堆栈称号能够自界说
[size=1em]name=Thisisalocalrepo#形貌信息
<divclass="linenumber3index2alt2"style="white-space:nowrap;padding:0px1em!important;margin:0px!important;border-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow:visible!important;position:static!important;right:auto!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;font-size:1em!important;min-height:inherit!important;background-image:none!important;background-attachment:initial!important;background-size:initial!important;background-origin:initial!important;background-clip:initial!important;background-position:initial!important;background-repeat:initial!important;">baseurl=file:
活着的死人 该用户已被删除
沙发
发表于 2015-1-15 09:39:17 | 只看该作者

给大家带来CentOS6.5利用createrepo搭建当地源

我一直以为自己的阅读理解能力比较强,平常的文章只要大部分字是认识的,只要仔细读读想想就能明白个八九不离十了……但是楼主的帖子我连看两遍,又看了一些回帖,才勉强看懂一些……
兰色精灵 该用户已被删除
板凳
发表于 2015-1-25 19:29:43 | 只看该作者
如果你想深入学习Linux,看不懂因为文档实在是太难了。写的最好的、最全面的文档都是英语写的,最先发布的技术信息也都是用英语写的。
愤怒的大鸟 该用户已被删除
地板
发表于 2015-2-4 06:52:20 | 只看该作者
通过一条缓慢的调制解调器线路,它也能操纵几千公里以外的远程系统。
老尸 该用户已被删除
5#
发表于 2015-2-9 18:25:10 | 只看该作者
学习Linux,应该怎样学,主要学些什么,一位Linux热心学习者,一段学习Linux的风云经验,历时十二个小时的思考总结,近十位网络Linux学习者权威肯定,为您学习Linux指明方向。
admin 该用户已被删除
6#
发表于 2015-2-27 21:25:41 | 只看该作者
如果你想深入学习Linux,看不懂因为文档实在是太难了。写的最好的、最全面的文档都是英语写的,最先发布的技术信息也都是用英语写的。
透明 该用户已被删除
7#
发表于 2015-3-9 20:20:24 | 只看该作者
为了更好的学习这门课程,我不仅课上认真听讲,课下也努力学习,为此还在自己的电脑上安装了Ubuntu系统。
柔情似水 该用户已被删除
8#
发表于 2015-3-17 05:10:18 | 只看该作者
放手去搞。尽量不要提问,运用搜索找答案,或者看wiki,从原理上理解操作系统的本质,而不是满足于使用几个技巧。尽量看英文资料。
莫相离 该用户已被删除
9#
发表于 2015-3-24 00:08:37 | 只看该作者
学习Linux系统在服务中的配置方法及使用方法。Linux在服务器中应用相当广,应对常用的apache,samba,ftp等服务器基本配置清楚了解。[重点,应巩固学习]
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-6-10 23:22

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表