企业内部yum的使用(请写出yum 源管理的详细步骤)

fangcloud 549 2022-07-18

本文转载自网络公开信息

一,建立一个yum仓库,建立服务端

1,建立一个目录/export/yum/Server2, 拷贝rpm到这个目录

3,安装createrepo[root@localhost Server]# rpm -ivh createrepo-0.4.4-2.fc6.noarch.rpm warning: createrepo-0.4.4-2.fc6.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 37017186Preparing... ########################################### [100%] 1:createrepo ########################################### [100%][root@localhost yum]#

4,执行:[root@localhost Server]# createrepo -v /export/yum/Server1/2158 - libbtctl-0.6.0-9.2.el5.i386.rpm2/2158 - man-pages-cs-0.16-6.noarch.rpm

6,客户端清除yum缓存信息:[root@localhost ~]# yum clean dbcacheLoading "security" pluginLoading "rhnplugin" pluginLoading "installonlyn" pluginThis system is not registered with RHN.RHN support will be disabled.0 cache files removed[root@localhost ~]#

二,建立yum客户端配置文件create a file in /etc/yum.repos.d for your repository文件内容:[tonykorn97]name=tonykorn97 yum serverbaseure=enabled=1gpgcheck=0

更改为就内容为:[tonykorn97]name=tonykorn97 yum serverbaseure=file:///export/yum/Serverenabled=1gpgcheck=0

一样的结果。

发现是baseurl写错成baseure了,更改过来后就可以了。

本站部分文章、图片属于网络上可搜索到的公开信息,均用于学习和交流用途,不能代表亿方云的观点、立场或意见。我们接受网民的监督,如发现任何违法内容或侵犯了您的权益,请第一时间联系小编邮箱daifeng@360.cn 处理。
上一篇:如何关闭ppt的背景音乐(Ppt如何关闭背景音乐)
下一篇:excel表格兼容模式改正常模式的方法(excel表格怎么从兼容模式改为正常模式)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~