Yum导出rpm

来自三线的随记

环境:

[root@ansible1 ~]# cat /etc/redhat-release 

CentOS Linux release 7.5.1804 (Core) 

前提:

yum install -y yum-plugin-downloadonly

搞:

yum install -y --downloadonly --downloaddir=./ansible ansible