Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1914127
  • 博文数量: 346
  • 博客积分: 10221
  • 博客等级: 上将
  • 技术积分: 4079
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-01 19:43
文章分类

全部博文(346)

文章存档

2012年(1)

2011年(102)

2010年(116)

2009年(127)

我的朋友

分类: LINUX

2010-12-07 00:16:12

webmin突然不能用了,想直接yum更新一下下!居然回显消息:

 
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Skipping security plugin, no data
Setting up Update Process
Skipping security plugin, no data
Skipping security plugin, no data
No Packages marked for Update

因为run里的服务是收费的

我考虑增加一个源

我google down一个增加源的办法

 vi /etc/yum.repos.d/rhel-debuginfo.repo  

[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever – $basearch – Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
baseurl是你的YUM源地址
enabled=0
是否启用这个仓库,1为起用,0为禁用
gpgcheck=1 
设置gpgcheck=1会让yum检查每个下载的RPM的GnuPG签名。这么做是因为你需要适当的GnuPG key注册到您的RPM数据库。可以防止被欺骗,如:非法入侵发行版网站,木马导入软件包,使不知情用户下载
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
GPGKEY 的存放地址
 
以上默认有的,复制添加以下更新点插入到rhel-debuginfo.repo文本里后面
 [base]
name=Red Hat Enterprise Linux $releasever -Base
baseurl=
gpgcheck=1
[update]
name=Red Hat Enterprise Linux $releasever -Updates
baseurl=
gpgcheck=1
[extras]
name=Red Hat Enterprise Linux $releasever -Extras
baseurl=
gpgcheck=1
[addons]
name=Red Hat Enterprise Linux $releasever -Addons
baseurl=
gpgcheck=1
[root@clinet ~]#yum clean all 清除缓存及旧的包
[root@clinet ~]# yum install httpd 测试是否能更新软件
阅读(8598) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

yundanvyuan81102014-01-08 16:18:17

进行完以上操作后,还是报错,提示下载超时,请问还有其他办法解决吗?谢谢

chinaunix网友2010-12-07 15:50:39

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com