달력

11

« 2024/11 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
2010. 7. 22. 15:47

REDHAT에 YUM 설치.. 리눅스서버2010. 7. 22. 15:47

레드햇에서.. yum 설치..

흐음.. 네이년에 검색되는 방법이 안되서리..

yum-2.0.8-1.noarch.rpm 이파일을 구할수가 없었다..

구글링중.. 중국애 블로그에서 발견.. ㅎㅎ
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0. [root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant)

1.  [root@localhost noarch]#
wget "http://yum.baseurl.org/download/2.0/yum-2.0.8-1.src.rpm"

2. [root@localhost noarch]# 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

3. [root@localhost noarch]# cd /usr/src/redhat/RPMS/noarch/

4.[root@localhost noarch]#  rpm -ivh yum-2.0.8-1.noarch.rpm
Preparing...                ###########################################

[100%]
   1:yum                   ###########################################

[100%]

5. [root@localhost noarch]# vi /etc/yum.conf

6. baseurl 두 부분만 수정..
[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/

7. [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    
...
..
..
..

[출처] REDHAT에 YUM 설치..|작성자 신쥐

:
Posted by 비개인오후