yum을 통한 rpm만 다운로드 받기

그니까.. 설치는 필요 없고.. rpm 파일만 다운로드 받고자 하는 경우가 있음.

% yum install yum-plugin-downloadonly
% yum install --downloadonly --downloaddir=/tmp memcached
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package memcached.x86_64 0:1.4.4-3.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================
 Package                           Arch                           Version                             Repository                    Size
===========================================================================================
Installing:
 memcached                         x86_64                         1.4.4-3.el6                         base                          68 k

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

Total download size: 68 k
Installed size: 147 k
Is this ok [y/N]: y
Downloading Packages:
memcached-1.4.4-3.el6.x86_64.rpm                                                                                  |  68 kB     00:01


exiting because --downloadonly specified

RPM 사용법

설치

% rpm -ivh --nodeps ImageMagick-6.0.7.1-10.i386.rpm
warning: ImageMagick-6.0.7.1-10.i386.rpm: V3 DSA signature: NOKEY, key ID a7048f8d
Preparing...                ########################################### [100%]
1:ImageMagick            ########################################### [100%]

삭제

% rpm -e ImageMagick