相关参数
--downloadonly 只下载不按照
--downloaddir 指点下载的目录
案例一:下载rpm包到指定的目录
[root@localhost /]# yum install vim-enhanced --downloadonly --downloaddir=/tmp/
已加载插件:fastestmirror
Repository epel is listed more than once in the configuration
Repository epel-debuginfo is listed more than once in the configuration
Repository epel-source is listed more than once in the configuration
案例二:重新下载rpm包
[root@localhost /]# yum reinstall vim-enhanced --downloadonly --downloaddir=/tmp/ 本文转自 闪电王 51CTO博客,原文链接:http://blog.51cto.com/sdwaqw/2059185