设置yum只下载不安装

#修改/etc/yum.conf,增加配置
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=1

#只下载不安装
yum --downloadonly --downloaddir=./ install pcre-devel

 

posted @ 2023-07-14 14:35  涂山有雨  阅读(89)  评论(0编辑  收藏  举报