centos8上配置yum保存安装包
增加 2 行内容:
keepcache=1 cachedir=/var/cache/yum/$basearch/$releasever
[root@localhost ~]# cat /etc/yum.conf [main] gpgcheck=1 installonly_limit=3 clean_requirements_on_remove=True best=True keepcache=1 cachedir=/var/cache/yum/$basearch/$releasever