redhat 安装yum教程(解决依赖关系)-bash: yum: command not found 问题解决
来源:互联网 发布:c语言 if else 编辑:程序博客网 时间:2024/05/17 22:34
1 请参考系统的Yum安装文章。。。
1下载yum的rpm安装包
[root@localhost rpm]# wget http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/yum-3.2.22-37.el5.centos.noarch.rpm
2 [root@localhost rpm]# rpm -qa | grep yum //确定没有安装yum的rpm包3 [root@localhost rpm]# rpm -ivh yum-3.2.22-37.el5.centos.noarch.rpm
error: Failed dependencies:
yum-fastestmirror is needed by yum-3.2.22-37.el5.centos.noarch
yum-metadata-parser >= 1.1.0 is needed by yum-3.2.22-37.el5.centos.noarch
需要安装依赖的包
4 找第一个依赖
[root@localhost rpm]# wget http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm
5 安装时发现依赖于yum,这个问题可以两个rpm包一起安装解决,先解决第二个依赖
[root@localhost rpm]# rpm -ivh yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm
error: Failed dependencies:yum >= 3.0 is needed by yum-fastestmirror-1.1.16-16.el5.centos.noarch
6 先解决第二个依赖
[root@localhost rpm]# rpm -ivh yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
error: Failed dependencies:libxml2.so.2()(64bit) is needed by yum-metadata-parser-1.1.2-3.el5.centos.x86_64
7 发现依赖,下载安装
[root@localhost rpm]# wget http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/ libxml2-2.6.26-2.1.12.x86_64.rpm
[root@localhost rpm]# rpm -ivh libxml2-2.6.26-2.1.12.x86_64.rpmPreparing... ########################################### [100%]
1:libxml2 ########################################### [100%]
8 第二个依赖解决,如果还是缺少包,继续下载安装。可以登录http://mirror.centos.org/centos/5.7/os/x86_64/CentOS/ 去找
[root@localhost rpm]# rpm -ivh yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
Preparing... ########################################### [100%]1:yum-metadata-parser ########################################### [100%]
9 检验一下yum包的依赖情况
[root@localhost rpm]# rpm -ivh yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm
error: Failed dependencies:yum >= 3.0 is needed by yum-fastestmirror-1.1.16-16.el5.centos.noarch
[root@localhost rpm]# rpm -ivh yum-3.2.22-37.el5.centos.noarch.rpm
error: Failed dependencies:
yum-fastestmirror is needed by yum-3.2.22-37.el5.centos.noarch
10 两个一起安装,解决
[root@localhost rpm]# rpm -ivh yum-3.2.22-37.el5.centos.noarch.rpm yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm
Preparing... ########################################### [100%]
1:yum-fastestmirror ########################################### [ 50%]
2:yum ########################################### [100%]
11 有需要可以yum -y update
- redhat 安装yum教程(解决依赖关系)-bash: yum: command not found 问题解决
- -bash: yum: command not found 问题解决
- -bash: yum: command not found 问题解决 .
- -bash: yum: command not found 问题解决
- bash: yum: command not found 问题解决
- -bash yum command not found
- -bash: yum: command not found
- -bash: yum: command not found
- -bash: yum: command not found
- bash: yum install crontabs: command not found
- yum故障最终解决办法.移魂版 bash:yum:command not found
- RedHat bash:Command not found
- linux:redhat:bash: setenforce: command not found
- CentOS下yum安装、源的选择及介绍。 yum command not found
- Linux问题解决:bash,shutdown command not found
- MySQL问题解决:-bash: mysql: command not found
- MySQL问题解决:-bash: mysql: command not found
- bash: ifconfig: command not found 问题解决
- Discuz! X2 计划任务原理分析
- [经典面试题]在O(1)时间删除链表结点
- Android 手把手教您自定义ViewGroup(二) 实战篇 -> 实现FlowLayout
- SQLite
- PHP中SESSION与COOKIE
- redhat 安装yum教程(解决依赖关系)-bash: yum: command not found 问题解决
- Android Material Design-Working with Drawables(使用Drawable)-(五)
- 点评:当你的云部署并不如供应商所宣传的那样好时怎么办?
- iOS: (库) 图片异步下载/缓存-SDWebImage的使用
- PHP递归调用数组值并用其执行指定函数
- 浅析Java中CountDownLatch用法
- Multipart传递参数request收不到解决方法
- 数据模型 (LP32 ILP32 LP64 LLP64 ILP64 )
- POJ 1719 Shooting Contest(二分图匹配)