使用Yum下载RPM包-进击的二狗子-51CTO博客
https://www.2cto.com/os/201905/807225.html
yumdownloader 命令
yum install yum-utils
语法:yumdownloader rpmname --resolve --destdir=/path
yum --downloadonly 命令
CentOS/RHEL 6之前的版本需先下载安装 yum-plugin-downloadonly
yum install yum-plugin-downloadonly
语法: yum install --downloadonly --downloaddir=/path <package-name>