`
- 浏览:
89483 次
- 性别:
- 来自:
湖南
-
Red Hat Enterprise Linux AS release 4 安装YUM
系统版本:
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
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
Red Hat 系统使用 CentOS的yum源配置文件,CentOS-Base.repo,Red Hat Enterprise Linux Server release 6.8 (Santiago)测试可用, release 6.5, release 6.9应该也可以
Red Hat Enterprise Linux AS release 4 (Nahant Update 3) Kernel \r on an \m # uname -a Linux leekwen 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:54:53 EST 2006 i686 i686 i386 GNU/Linux # lsb_release -a LSB ...
· Red Hat Enterprise Linux Advanced Platform - 对应以前的Red Hat Enterprise Linux AS · Red Hat Enterprise Linux - 对应以前的Red Hat Enterprise Linux ES Server系统版本信息: [root@rhel5 Server]# cat...
[root@localhost ~]# yum -y install gcc gcc-c++ #安装编译环境 [root@localhost ~]# yum install -y pcre pcre-devel #安装pcre软件包(使nginx支持http rewrite模块) [root@localhost ~]# yum install -y ...
Red Hat Enterprise Linux Server release 5 (Tikanga)
RDO是红帽Red Hat Enterprise Linux OpenStack Platform的社区版,类似RHEL和Fedora,RHEV和oVirt这样的关系。
RHEL 8 搭建 Nginx Web 服务,搭建前请把 yum 源配好。 环境 Red Hat Enterprise Linux release 8.0 VMware Workstation Pro 14
项目需要使用MySQL,由于以前都是在windows下傻瓜式安装,基本没有遇到什么问题,但是这次是在服务器上安装,由于到Linux上安装软件不熟悉,走了不少弯路,耽误了好多时间。...Red Hat Enterprise L
CentOS和Linueox、组装Linux (White box Linux)、Tao Linux 、X/OS Linux,及科学Linux (Scientific Linux)等都以红帽所发布的源代码原件重建Red Hat Enterprise Linux的翻版,并修正了已经发现了的redhat的...
Red Hat Enterprise Linux Server release 7.5 (Maipo) 配置yum源 vim /etc/yum.repos.d/base.repo [base] name=base baseurl=file:///mnt enable=1 gpgcheck=0 mount /dev/cdrom /mnt 安装...