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

 

posted @ 2020-04-20 11:05  开始认识  阅读(2633)  评论(0编辑  收藏  举报