1.安装yum的插件yum-downloadonly
yum -y install yum-downloadonly
2.使用
yum -y install somepackges --downloadonly --downloaddir=/path/
--downloadonly 指明只下载不安装
--downloaddir=/path 指定下载目录
1.安装yum的插件yum-downloadonly
yum -y install yum-downloadonly
2.使用
yum -y install somepackges --downloadonly --downloaddir=/path/
--downloadonly 指明只下载不安装
--downloaddir=/path 指定下载目录