Linux学习网!Linux爱好者的家园~凡事都是必须经过枯燥无味阶段才能做到较高层次的。
首页 新闻 Linux命令 学习入门 Ubuntu 服务配置 数据库 Linux发行版 视频教程 Linux下载 Linux论坛 留言本

TOP

redhat RHEL4安装yum
2010-09-09 10:01:42 来源:Linux学习网 】 浏览:496次 评论:0

redhat RHEL4安装yum在线安装

1.RHEL4安装yum,下载yum软件包:
http://yum.baseurl.org/download/2.0/yum-2.0.8-1.src.rpm
2.安装(由于是RPM源码包所以安装比较特殊)
#rpmbuild –rebuild yum-2.0.8-1.src.rpm
+++++++++++++++++++安装过程+++++++++++++++++++
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires: /bin/bash /bin/sh /usr/bin/python config(yum) = 2.0.8-1
libxml2-python python rpm >= 0:4.1.1 rpm-python
Obsoletes: yum-phoebe
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/yum-
2.0.8root
Wrote: /usr/src/redhat/RPMS/noarch/yum-2.0.8-1.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.40887
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd yum-2.0.8
+ ‘[' /var/tmp/yum-2.0.8root '!=' / ']‘
+ rm -rf /var/tmp/yum-2.0.8root
+ exit 0
Executing(–clean): /bin/sh -e /var/tmp/rpm-tmp.40887
+ umask 022
+ cd /usr/src/redhat/BUILD
+ rm -rf yum-2.0.8
+ exit 0
+++++++++++++++++++安装过程+++++++++++++++++++
[root@localhost ~]#
3.进入到:/usr/src/redhat/RPMS/noarch/
root@localhost RPMS]# cd /usr/src/redhat/RPMS/noarch/
[root@localhost noarch]# rpm -ivh yum-2.0.8-1.noarch.rpm
Preparing… ###########################################
[100%]
1:yum ###########################################
[100%]
二、配置文件部份:
[root@localhost ~]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[base]
name=Red Hat Linux $releasever - $basearch - Base
baseurl= http://centos.ustc.edu.cn/centos/4/os/i386/
[updates]
name=Red Hat Linux $releasever - Updates
baseurl= http://mirror.centos.org/centos/4/updates/i386/

或者(64 bit)

[main]

cachedir=/var/cache/yum

debuglevel=2

logfile=/var/log/yum.log

pkgpolicy=newest

distroverpkg=redhat-release

tolerant=1

exactarch=1

[base]

name=Red Hat Linux $releasever - $basearch - Base

baseurl=http://centos.ustc.edu.cn/centos/4/os/x86_64/

[updates]

name=Red Hat Linux $releasever - $basearch - Base

baseurl=http://centos.ustc.edu.cn/centos/4/os/x86_64/

三、完成了,测试下吧。
[root@localhost noarch]# yum update
Gathering header information file(s) from server(s)
Server: Red Hat Linux 4AS - i386 - Base
Server: Red Hat Linux 4AS - Updates
Finding updated packages
Downloading needed headers
xorg-x11-xauth-0-6.8.2-1. 100% |=========================| 84 kB
00:01
perl-HTML-Parser-0-3.55-1 100% |=========================| 3.5 kB
00:00
tar-0-1.14-12.5.1.RHEL4.i 100% |=========================| 5.1 kB
00:00
perl-XML-LibXML-Common-0- 100% |=========================| 1.9 kB
00:00
retrygrab() failed for:
http://mirror.centos.org/centos/4/updates/i386//headers/openssh-
server-0-3.9p1-11.el4_7.i386.hdr
Executing failover method
failover: out of servers to try
Error getting file
http://mirror.centos.org/centos/4/updates/i386//headers/openssh-server-
0-3.9p1-11.el4_7.i386.hdr
[Errno 4] IOError: <urlopen error >

[root@localhost noarch]# yum –version

分享到:
你可能感兴趣的文章:
Tags:RHEL4安装yum RHEL4 yum
】 【打印繁体】【投稿】 【评论】 【关闭】 【返回顶部
上一篇yum配置方法 下一篇硬盘安装 Fedora

推荐图文

赞助商

相关栏目

最新文章

热门文章

推荐文章