rhel6添加本地yum
2011-08-25 13:47
232 查看
#setenforce 0 #mkdir /yum #mount -o loop /dev/cdrom /mnt #cp -ar /mnt/* /yum
#vi /etc/yum.repos.d/local.repo [local] name=Red Hat Enterprise Linux update6 baseurl=file:///yum/ gpgcheck=0 enabled=1
#mv /etc/yum.repos.d/packagekit-media.repo /etc/yum.repos.d/packagekit-media.repo.bk 或者直接删除,否则yumlist会报错如下:
rhel6 Error: Cannot retrieve repository metadata (repomd.xml) for repository: InstallMedia. Please verify its path and try again
#yum clean all
测试
[root@rhel6 ~]# yum repolist
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
repo id repo name status
local Red Hat Enterprise Linux update6 3,391
repolist: 3,391
本文出自 “no brothers,no linux” 博客,请务必保留此出处http://tonychiu.blog.51cto.com/656605/648545
相关文章推荐
- RHEL6 yum 本地光盘源
- 为RHEL 6制作一个本地yum 源
- rhel7.x配置本地yum
- yum 在 rhel 6.x 下的本地配置
- RHEL5.3中配置本地yum详解包括RHEL5.1(from RHEL5 DVD)
- 2015-05-26 为RHEL7设置本地光盘yum并安装net-tools
- rhel 4/oracle linux 4/centos linux 4 配置本地yum资源库 推荐
- rhel 5.8 创建本地yum 源
- Centos 7.0添加yum本地安装源
- RHEL配置本地yum源
- RHEL 5.4 ,配置 yum为本地源
- RHEL 5.3通过安装光盘构建本地yum 服务器
- RHEL7挂载ISO做本地yum
- 配置Rhel5.8的本地yum源
- rhel6.4 配置本地yum的源
- RHEL6.5,制作本地 YUM 源
- rhel6.3 yum配置本地安装源
- rhel 6.0 配置 yum 本地源
- RHEL下本地yum仓库的配置方法
- 个人yum理解,本地yum源添加及推荐一个神奇的网站