免费注册 查看新帖 |

Chinaunix

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

yum用不了,请高人指点 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-19 11:02 |只看该作者 |倒序浏览
#yum install compuiz

Loading "installonlyn" plugin
Loading "kmod" plugin
Loading "rhnplugin" plugin
Loading "security" plugin
Loading "downloadonly" plugin
Loading "skip-broken" plugin
Loading "protectbase" plugin
Loading "changelog" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
0 packages excluded due to repository protections
Parsing package install arguments
Setting up repositories
Reading repository metadata in from local files
0 packages excluded due to repository protections
Nothing to do

this system is not registered with RHN.
RHN support will be disabled.
no Repositories Available to set up
no Repositories Available to set up
no Match for argument: compiz


E文不好

论坛徽章:
0
2 [报告]
发表于 2009-08-19 11:33 |只看该作者
你用的是红帽的企业版却没有注册。

论坛徽章:
0
3 [报告]
发表于 2009-08-19 12:16 |只看该作者
ll /etc/yum.repos.d/
看看里面的配置
RHEL5 自己做个本地的YUM

论坛徽章:
0
4 [报告]
发表于 2009-08-19 13:16 |只看该作者

回复 #1 xue0808 的帖子

你这个是rhel5 建议去购买rhn帐号 然后就可以是用yum在线安装和升级了

论坛徽章:
2
2015年辞旧岁徽章
日期:2015-03-03 16:54:1515-16赛季CBA联赛之上海
日期:2016-05-05 09:45:14
5 [报告]
发表于 2009-08-19 13:18 |只看该作者
要RHN才能升级的

论坛徽章:
0
6 [报告]
发表于 2009-08-19 13:23 |只看该作者
#cd   /etc/yum.repos.d/
#more   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/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

compuiz在RHEL5.0的iso里没有
在网上下载的compuiz用不了

论坛徽章:
7
天蝎座
日期:2013-08-16 23:19:32丑牛
日期:2014-01-08 09:20:14寅虎
日期:2014-01-11 11:03:44午马
日期:2014-04-28 11:02:40天秤座
日期:2014-05-16 23:24:24摩羯座
日期:2014-07-20 10:46:04卯兔
日期:2014-08-08 15:21:41
7 [报告]
发表于 2009-08-19 15:49 |只看该作者
如果不想做yum源,下载tarball包吧。

论坛徽章:
0
8 [报告]
发表于 2009-08-19 17:58 |只看该作者
不用那么麻烦






CentOS的源有好多,网上大多数人都推荐中科大的源,经测试在青岛网通连接中科大(http://centos.ustc.edu.cn/)的速度也非常好,那就用它吧。

先将RHEL5自带的yum删除,执行
rpm -qa|grep yum

将所有找到的包都删除(有些需要加上--nodeps),然后到中科大的网站下载如下两个包:
wget http://centos.ustc.edu.cn/centos ... 5.centos.noarch.rpm
wget http://centos.ustc.edu.cn/centos ... .1.2-2.el5.i386.rpm

下载后安装:
rpm -ivh yum-metadata-parser-1.1.2-2.el5.i386.rpm
rpm -ivh yum-3.2.8-9.el5.centos.1.noarch.rpm

然后下载中科大专用的配置文件:
cd /etc/yum.repos.d/
wget http://centos.ustc.edu.cn/CentOS-Base.repo.5
mv CentOS-Base.repo.5 CentOS-Base.repo

因为默认的配置文件中服务器地址用的版本号是变量$releasever,所以需要将其替换为实际的版本号,否则是无法连接到服务器的,当前CentOS最新版是5.3,所以我们修改CentOS-Base.repo
vi CentOS-Base.repo

在vi编辑器中进行全文件替换
:%s/$releasever/5.3/

最后保存退出即可。然后执行
yum update

论坛徽章:
0
9 [报告]
发表于 2009-08-19 17:59 |只看该作者
#  Red Hat Enterprise Linux 5 / i386:

rpm -Uhv http://apt.sw.be/redhat/el5/en/i ... 6-1.el5.rf.i386.rpm



# Red Hat Enterprise Linux 5 / x86_64:

rpm -Uhv http://apt.sw.be/redhat/el5/en/x ... 1.el5.rf.x86_64.rpm

论坛徽章:
1
IT运维版块每日发帖之星
日期:2016-05-06 06:20:00
10 [报告]
发表于 2009-08-19 20:37 |只看该作者
支持8楼的,问一下9楼的这样是在干嘛
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP