用yum下載rpm包(不安裝)到制定目錄
用yum下載rpm包
www.2cto.com
1.安裝yum-downloadonly
# yum install yum-downloadonly -y
2.下載到指定目錄
# yum install nameofrpm -y --downloadonly --downloaddir=path
eg:
# rpm -q kernel
kernel-2.6.18-308.24.1.e15
# yum install kernel-2.6.18-308.24.1.e15 -y --downloadonly --downloaddir=/root
注意:你的環境裡面要沒安裝過這個包.