免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1507 | 回复: 8
打印 上一主题 下一主题

yum相关问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-22 14:48 |只看该作者 |倒序浏览
我的系统是rhel 5,最近刚接触yum命令,照网上的资料添加yum源后,发现还是无法实现yum安装软件的功能。 被搞得越来越晕。
   我试着yum install gtk,出现的结果如图(是否是没找到匹配结果的意思?)  请问是源添加的有问题,还是别的上面原因。请大家指教。

[ 本帖最后由 yzchen211s 于 2010-1-22 14:49 编辑 ]

yum.JPG (13.61 KB, 下载次数: 6)

yum.JPG

论坛徽章:
0
2 [报告]
发表于 2010-01-22 16:15 |只看该作者
yum install "gtk*"

论坛徽章:
0
3 [报告]
发表于 2010-01-22 16:55 |只看该作者
给你2个源,自己找的。
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name= mirror-centos-org --CentOS-5-Base
baseurl= http://mirror.centos.org /centos/5/os/i386/
gpgcheck=1
gpgkey=http:// mirror.centos.org /centos/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name= mirror-centos-org --CentOS-5-Updates
baseurl= http://mirror.centos.org/centos/5/updates/i386/
gpgcheck=1
gpgkey=http:// mirror.centos.org /centos/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name= mirror-centos-org --CentOS-5-Addons
baseurl=http://mirror.centos.org/centos/5/addons/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name= mirror-centos-org --CentOS-5-Extras
baseurl= http://mirror.centos.org/centos/5/extras/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
[centosplus]
name= mirror-centos-org --CentOS-5-Plus
baseurl= http://mirror.centos.org/centos/5/centosplus/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#contrib - packages by Centos Users
[contrib]
name= mirror-centos-org --CentOS-5-Contrib
baseurl= http://mirror.centos.org/centos/5/contrib/i386/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

下面是163的源,很快。
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[addons]
name=centos-ustc-edu-cn--CentOS-5 - Base
baseurl=http://mirrors.163.com/centos/5/addons/i386/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=centos-ustc-edu-cn--CentOS-5 - Updates
baseurl=http://mirrors.163.com/centos/5/updates/i386/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[centosplus]
me=centos-ustc-edu-cn--CentOS-5 - Updates
baseurl=http://mirrors.163.com/centos/5/centosplus/i386/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5
[contrib]
me=centos-ustc-edu-cn--CentOS-5 - Updates
baseurl=http://mirrors.163.com/centos/5/contrib/i386/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5
[extras]
me=centos-ustc-edu-cn--CentOS-5 - Updates
baseurl=http://mirrors.163.com/centos/5/extras/i386/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5
[local]
me=centos-ustc-edu-cn--CentOS-5 - Updates
baseurl=http://mirrors.163.com/centos/5/os/i386/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5

lz得学会自己做repo文件,这样yum时会很方便

论坛徽章:
0
4 [报告]
发表于 2010-01-22 17:04 |只看该作者
向楼主的这个问题是什么原因引起的,小弟也遇到过

论坛徽章:
0
5 [报告]
发表于 2010-01-22 17:11 |只看该作者
没有找到正确的GPGKEY
一个完整的外网repo仓库是rpm数据库,还有就是相应的GPGKEY,没有它是不能YUM的
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
你copy上面的配置后,再yum,是可以的

[ 本帖最后由 andychan851220 于 2010-1-22 17:12 编辑 ]

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
6 [报告]
发表于 2010-01-22 20:54 |只看该作者
楼主的源配置的有问题吧.
在坛子里搜索下,用dvd架设本地源.

论坛徽章:
0
7 [报告]
发表于 2010-01-22 21:21 |只看该作者
lz配置好yum源后,要把rhnplugin删掉。。。会干扰的。。。。

论坛徽章:
0
8 [报告]
发表于 2010-01-22 23:12 |只看该作者
is not reg....... with RHN

招聘 : 技术支持/维
论坛徽章:
0
9 [报告]
发表于 2010-01-23 01:04 |只看该作者

回复 #1 yzchen211s 的帖子

包名写错了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP