Red Hat Enterprise Linux AS release 4 安装YUM
2010-06-06 11:12
731 查看
系统版本:
Linux localhost.localdomain 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35
EDT 2007 i686 i686 i386 GNU/Linux
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
一、
1.下载软件包: 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 ~]# vi /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 - Updates
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:
只是为了测试,我取消了更新.
[root@localhost noarch]# yum –version
Linux localhost.localdomain 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35
EDT 2007 i686 i686 i386 GNU/Linux
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
一、
1.下载软件包: 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 ~]# vi /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 - Updates
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:
只是为了测试,我取消了更新.
[root@localhost noarch]# yum –version
相关文章推荐
- Red Hat Enterprise Linux AS release 4 安装YUM和配置yum源
- Red Hat Enterprise Linux AS release 4 安装YUM
- Red Hat Enterprise Linux AS release 4 (Nahant Update 4)yum及libaio安装
- Red Hat Enterprise Linux AS release 4 配置YUM(rhel as 4 安装yum)
- Red Hat Enterprise Linux AS release 4 下安装 gcc
- 安装Red Hat Enterprise Linux AS release 4 过程中遇到的acpi=off问题
- Red Hat Enterprise Linux Server release 6.4 x64 安装 yum 源
- 【转】Red Hat Enterprise Linux Server release 6.5 安装yum 失败,依赖包,deltarpm = 3.5-0.5.20090913git.el6
- Red Hat Enterprise Linux AS release 4 Update 8 下安装 Open*** 服务器
- Red Hat Enterprise Linux AS release 4 apache+MYsql+PHP的安装和优化
- Red Hat Enterprise Linux Server release 7.1 (Maipo) 安装gcc 的几种方式
- 在 Red Hat Enterprise Linux AS 3 (x86)上安装 Oracle10g(10.1.0.2.0)
- How To Install And Configure Ganglia On Red Hat Enterprise Linux 5---YUM 安装篇
- Red Hat Enterprise Linux Server release 5.6 安装 MongoDB 2.6.4
- Git在Red Hat Enterprise Linux Server release 5.1上的安装(android源码下载必备工具)
- Red Hat Enterprise Linux AS 5 下载地址及安装号码
- Red Hat Enterprise Linux Workstation release 6.2 (Santiago)系统安装配置
- Red Hat Enterprise Linux Server(RHEL) yum安装软件时This system is not registered with RHN. RHN support will be disabled. 的解决方法(转)
- Linux(Red Hat Enterprise Linux 6)安装Oracle(12c Release 2)数据库
- Top 10 “Yum” installables to be productive as a developer on Red Hat Enterprise Linux