This system is not registered wi…
来源:互联网 发布:ubuntu terminal 配色 编辑:程序博客网 时间:2024/05/24 02:39
This system is not registered with RHN
今天在公司的rhel机器上利用yum安装一个软件的时候,出现了上述错误提示,原因是你的linux没有在红帽网络上注册,所以无法下载上面的软件包,替代方案可以使用centos的yum。下面介绍使用流程。
1.卸载rhel的默认安装的yum包
查看yum包
rpm -qa|grep yum
卸载之
rpm -qa|grep yum|xargs rpm -e --nodeps
2.下载新的yum包(如果下面rpm不存在,请到http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/自己去找名字下载,还有注意你的是32位系统还是64位系统)这里是64位系统
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-33.el5.centos.noarch.rpm
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
32位系统:
wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm
wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
并且安装之
rpm -ivh yum-*
注意:yum和yum-fastestmirror相互依赖,所以同时安装即可。
3.下载yum的配置源
wget http://www.linuxidc.com/files/2011/05/06/CentOS-Base.repo下载到 /etc/yum.repos.d/ 目录下面
4.全部更新
把修改后的CentOS-Base.repo复制到/etc/yum.repos.d/目录下,并在该目录下执行yumupdate进行统一更新,完成即可,这下安装软件什么的就比较方便了,不然的话,呵呵,那就有得你忙了。。。Linux软件包的依赖关系那是相当的头痛
- This system is not registered wi…
- AdapterView was not registered
- Lesson 11 Is this your shirt? 这…
- 关于alter system switch lo…
- Path error.jsp does not start wi…
- object is not an instance of dec…
- “constructors not allowed …
- resource is out of sync with t…
- Installing other Perl modules wi…
- This bundle is invalid. Apps tha…
- This Android SDK …
-  
- PANIC: Could not …
- Why ASMLIB and why not? <转载…
-
- Money is not out of the province
- secureCRT The remote system refu…
- alter system archive current log…
- perl sort <=> and cmp
- perl中数组函数详解:join和split…
- 使用javascript动态管理css
- curl监控站点响应时间
- ksh学习笔记
- This system is not registered wi…
- linux终端命令精选
- Linux(ubuntu)赋予用户sudo权限
- linux top命令详解
- 磁盘IO性能监控(Linux 和 Windows…
- VBS基础教程
- [原创]磁盘IO利用率监控VBS脚本(W…
- VBS读写文件以及OpenTextFile方法
- VBS常用函数