LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1568|回复: 5

系统没yum, 如何新安装一个yum?

[复制链接]
发表于 2006-6-21 20:50:00 | 显示全部楼层 |阅读模式
OS: RHEL4
yum工具可以从哪里下载并安装呢?
 楼主| 发表于 2006-6-21 22:17:33 | 显示全部楼层
安装了这两个:
http://isoredirect.centos.org/ce ... mconf-4-4.5.src.rpm
http://isoredirect.centos.org/ce ... 2-2.centos4.src.rpm

运行yum, 提示:
# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.3.4 (#1, Feb  2 2005, 11:44:49)
[GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq
  

[root@node0 Load]# rpm -e yum
error: package yum is not installed
[root@node0 Load]# rpm -qa |grep yum
[root@node0 Load]# python
Python 2.3.4 (#1, Feb  2 2005, 11:44:49)
[GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import yum
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named yum
>>>
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-22 00:03:39 | 显示全部楼层
done!

居然还得装一堆包:
python-2.3.4-14.1.noarch.rpm                 
yumex-0.99.15-1.0.c4.noarch.rpm              
yum-2.4.2-2.centos4.noarch.rpm               
centos-yumconf-4-4.5.noarch.rpm              
yum-utils-0.5-1.c4.noarch.rpm               
yum-plugin-protectbase-1.1-1.c4.noarch.rpm   
createrepo-0.4.3-1.noarch.rpm               
python-elementtree-1.2.6-4.noarch.rpm        
python-sqlite-1.1.6-1.noarch.rpm            
python-urlgrabber-2.9.6-2.noarch.rpm         
sqlite-3.2.2-1.noarch.rpm
回复 支持 反对

使用道具 举报

发表于 2006-6-22 12:24:00 | 显示全部楼层
不如再弄个smart,个人觉得很好用的包管理器
yum install smart smart-update smart-gui
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-24 18:14:03 | 显示全部楼层
all files:
centos-yumconf-4-4.5.src.rpm
createrepo-0.4.3-1.src.rpm
python-2.3.4-14.1.src.rpm
python-elementtree-1.2.6-4.src.rpm
python-elementtree-1.2.6-6.2.el4.rf.i386.rpm
python-sqlite-1.0.1-1.2.el4.rf.i386.rpm
python-sqlite-1.1.6-1.src.rpm
python-urlgrabber-2.9.6-2.src.rpm
python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
pyvault-release-3-3.el4.pyv.noarch.rpm
sqlite-2.8.16-1.2.el4.rf.i386.rpm
sqlite-3.2.2-1.src.rpm
sqlite-devel-2.8.16-1.2.el4.rf.i386.rpm
yum-2.4.2-0.4.el4.rf.noarch.rpm
yum-2.4.2-2.centos4.src.rpm
yum-2.6.1
yum-2.6.1-1.src.rpm
yum-plugin-fastestmirror-0.2.4-3.c4.noarch.rpm
yum-plugin-protectbase-1.1-1.c4.noarch.rpm
yum-utils-0.5-1.c4.noarch.rpm
yumex-0.99.15-1.0.c4.noarch.rpm
回复 支持 反对

使用道具 举报

发表于 2006-6-24 21:48:17 | 显示全部楼层
以前的笔记。

副作用:图标、名称变成CentOS,那顶小红帽也变成八角砖(砖?)。当你想从光盘安装软件,要求你放的是CentOS光盘,而不是RHEL………
考虑清楚。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表