CAFE

rhn/yum/up2date

어떻게 RHN으로부터 패키지 하나씩 다운로드 하는 것 대신에 YUM을 통해 SOURCE 패키지를 다운받을 수 있을까?

작성자이누기|작성시간09.09.09|조회수215 목록 댓글 0

어떻게 RHN으로부터 패키지 하나씩 다운로드 하는 것 대신에 YUM을 통해 SOURCE 패키지를 다운받을 수 있을까?

Article ID: 15838 - Created on: Feb 22, 2009 7:04 AM - Last Modified:  Feb 25, 2009 2:58 PM

Release Found: Red Hat Enterprise Linux 5 and later

 

You can use yumdownloader with the --source option to download source RPM packages.

 

In order to use the yumdownloader utility, make sure that you have the yum-utils package installed on the machine.

 

# rpm -q yum-utils

 

If you do not have the yum-utils package installed, you can use the yum utility to install the package:

 

# yum install yum-utils

 

The next step is to configure a yum repository to download source packages.

 

To create a new repository, open a new file /etc/yum.repos.d/rhel-src.repo and add the following configuration directive:

 

[rhel-src]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

 

Now download the source package(s) using yumdownloader.

 

For example:

# yumdownloader --source openldap

 

 

출처:http://kbase.redhat.com/faq/docs/DOC-15838

 

다음검색
현재 게시글 추가 기능 열기

댓글

댓글 리스트
맨위로

카페 검색

카페 검색어 입력폼