用yum下载rpm包
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
注意:你的环境里面要没安装过这个包
阅读(4136) | 评论(0) | 转发(0) |