yum install -y 包名 --downloadonlyls /var/cache/yum/x86_64/7/yum install -y 包名 --downloadonly --downloaddir=路径yum reinstall -y 包名 --downloadonly --downloaddir=路径
yum
原文:https://www.cnblogs.com/linuxws/p/11929124.html