[转帖]yum 下载rpm包 之前不知道具体的存放路径.

时间:2022-05-06 15:35:32

使用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>