#修改/etc/yum.conf,增加配置 cachedir=/var/cache/yum/$basearch/$releasever keepcache=1 #只下载不安装 yum --downloadonly --downloaddir=./ install pcre-devel