Yum-downloadonly

(Yum으로 rpm 다운로드에서 넘어옴)
  다른 뜻에 대해서는 yumdownloader 문서를 참조하십시오.

1 개요[ | ]

yum rpm 다운로드
yum으로 rpm 다운로드
  • yum으로 rpm 패키지를 설치하지 않고 rpm 파일만 다운로드할 수 있다.
  • 단, 이미 설치된 패키지는 안된다.
해당 패키지가 설치되지 않은 서버에서 하든가... 삭제 후 다운로드해야 한다. ㅠㅠ
이러한 문제 때문에 yumdownloader 사용을 권장한다. ★

2 사전 작업[ | ]

3 방법[ | ]

  • 기본규칙에 따른 디렉토리에 저장
yum install 패키지명 --downloadonly
  • 지정한 폴더에 저장
yum install 패키지명 -y --downloadonly --downloaddir=경로
  • 현재 폴더에 저장 ★
yum install 패키지명 -y --downloadonly --downloaddir=.

4 실행예시 1: 기본 폴더[ | ]

[root@zetawiki ~]# yum install ipmitool --downloadonly
... (생략)
=============================================================================
 Package              Arch        Version                 Repository    Size
=============================================================================
Installing:
 ipmitool             x86_64      1.8.11-28.el6           base         464 k
Installing for dependencies:
 OpenIPMI             x86_64      2.0.16-14.el6           base         156 k
 OpenIPMI-libs        x86_64      2.0.16-14.el6           base         473 k
 lm_sensors-libs      x86_64      3.1.1-17.el6            base          38 k
 net-snmp-libs        x86_64      1:5.5-54.el6_7.1        updates      1.5 M

Transaction Summary
=============================================================================
Install       5 Package(s)

Total download size: 2.7 M
Installed size: 8.7 M
Is this ok [y/N]: y
... (생략)
Downloading Packages:
(1/5): OpenIPMI-2.0.16-14.el6.x86_64.rpm              | 156 kB     00:00     
(2/5): OpenIPMI-libs-2.0.16-14.el6.x86_64.rpm         | 473 kB     00:00     
(3/5): ipmitool-1.8.11-28.el6.x86_64.rpm              | 464 kB     00:00     
(4/5): lm_sensors-libs-3.1.1-17.el6.x86_64.rpm        |  38 kB     00:00     
(5/5): net-snmp-libs-5.5-54.el6_7.1.x86_64.rpm        | 1.5 MB     00:00     
-----------------------------------------------------------------------------
Total                                        8.4 MB/s | 2.7 MB     00:00     
exiting because --downloadonly specified
[root@zetawiki ~]# ll /var/cache/yum/x86_64/6/base/packages/
total 1136
-rw-r--r-- 1 root root 475008 Jul 25 05:42 ipmitool-1.8.11-28.el6.x86_64.rpm
-rw-r--r-- 1 root root  38768 Sep 26  2012 lm_sensors-libs-3.1.1-17.el6.x86_64.rpm
-rw-r--r-- 1 root root 159624 Feb 24  2013 OpenIPMI-2.0.16-14.el6.x86_64.rpm
-rw-r--r-- 1 root root 484752 Feb 24  2013 OpenIPMI-libs-2.0.16-14.el6.x86_64.rpm
[root@zetawiki ~]# ll /var/cache/yum/x86_64/6/updates/packages/
total 1584
-rw-r--r-- 1 root root 1620984 Aug 18 01:21 net-snmp-libs-5.5-54.el6_7.1.x86_64.rpm

5 실행예시 2: 현재 폴더에 다운로드 ★[ | ]

[root@zetawiki ~]# mkdir temp
[root@zetawiki ~]# cd temp
[root@zetawiki temp]# yum install ipmitool -y --downloadonly --downloaddir=.
... (생략)
=============================================================================
 Package              Arch        Version                 Repository    Size
=============================================================================
Installing:
 ipmitool             x86_64      1.8.11-28.el6           base         464 k
Installing for dependencies:
 OpenIPMI             x86_64      2.0.16-14.el6           base         156 k
 OpenIPMI-libs        x86_64      2.0.16-14.el6           base         473 k
 lm_sensors-libs      x86_64      3.1.1-17.el6            base          38 k
 net-snmp-libs        x86_64      1:5.5-54.el6_7.1        updates      1.5 M

Transaction Summary
=============================================================================
Install       5 Package(s)

Total download size: 2.7 M
Installed size: 8.7 M
Downloading Packages:
(1/5): OpenIPMI-2.0.16-14.el6.x86_64.rpm              | 156 kB     00:00     
(2/5): OpenIPMI-libs-2.0.16-14.el6.x86_64.rpm         | 473 kB     00:00     
(3/5): ipmitool-1.8.11-28.el6.x86_64.rpm              | 464 kB     00:00     
(4/5): lm_sensors-libs-3.1.1-17.el6.x86_64.rpm        |  38 kB     00:00     
(5/5): net-snmp-libs-5.5-54.el6_7.1.x86_64.rpm        | 1.5 MB     00:00     
-----------------------------------------------------------------------------
Total                                        8.4 MB/s | 2.7 MB     00:00     
exiting because --downloadonly specified
[root@zetawiki temp]# ll
total 2720
-rw-r--r-- 1 root root  475008 Jul 25 05:42 ipmitool-1.8.11-28.el6.x86_64.rpm
-rw-r--r-- 1 root root   38768 Sep 26  2012 lm_sensors-libs-3.1.1-17.el6.x86_64.rpm
-rw-r--r-- 1 root root 1620984 Aug 18 01:21 net-snmp-libs-5.5-54.el6_7.1.x86_64.rpm
-rw-r--r-- 1 root root  159624 Feb 24  2013 OpenIPMI-2.0.16-14.el6.x86_64.rpm
-rw-r--r-- 1 root root  484752 Feb 24  2013 OpenIPMI-libs-2.0.16-14.el6.x86_64.rpm

6 같이 보기[ | ]

7 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}