red hat 6.5 Linux.6.5 安装yum

red hat 6.5 红帽企业Linux.6.5 yum This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. 解决办法

1.删除redhat原有的yum 
 

rpm -aq|grep yum|xargs rpm -e --nodeps 

2.下载yum安装文件

wget http://mirrors.163.com/centos/6/os/i386/Packages/yum-metadata-parser-1.1.2-16.el6.i686.rpm
wget http://mirrors.163.com/centos/6/os/i386/Packages/yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm 
wget http://mirrors.163.com/centos/6/os/i386/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

3.进行安装yum 

rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm 
rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
rpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm 

有时候会提示需要python-urlgrabber依赖,下载python-urlgrabber

上网搜索下载python-urlgrabber-3.9.1-11.el6.noarch.rpm
 
   
安装
rpm -ivh python-urlgrabber-3.9.1-11.el6.noarch.rpm
 
   
查看python-urlgrabber安装版本是否正确
rpm -qa | grep python-url

4.清除原有缓存

yum clean all

5.重建缓存,以提高搜索安装软件的速度

yum makecache

6.更新系统

yum update

你可能感兴趣的:(linux基础)