`
pwp5566
  • 浏览: 61607 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

Linux中安装yum

阅读更多
Linux中安装yum
as4

安装的yum是从centos升级到RHEL4
1.需要的rpm包(附件中给出)
从上到下安装防止依赖问题
centos-yumconf-4-4.5.noarch.rpm
python-elementtree-1.2.6-7.el4.rf.i386.rpm
python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
sqlite-2.8.16-1.2.el4.rf.i386.rpm
python-sqlite-1.0.1-1.2.el4.rf.i386.rpm
yum-2.4.2-0.4.el4.rf.noarch.rpm

rpm -ivh *.rpm

需要修改/etc/yum.repos.d/CentOS-Base.repo文件内容(下载附件有此文件)
直接覆盖文件

安装完以上所有安装包就执行如下命令
   导入GPG Key
  rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
或rpm --import http://www.haoxm.net/tools/RPM-GPG-KEY-CentOS-4

此时yum安装完毕


yum 的参数list/search/install/upgrade/remove
ep:
#yum install firefox
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics