CentOS7关闭自动下载更新


CentOS7关闭自动下载更新

[root@localhost ~]# systemctl start crond
[root@localhost ~]# yum -y install cronie
[root@localhost ~]# yum -y install yum-cron
[root@localhost ~]# systemctl start yum-cron
[root@localhost ~]# gedit /etc/yum/yum-cron.conf
update_messages = no
download_updates = no

++++++++++++++++++++++++++++++++

[root@localhost ~]# du -hs /var/cache/yum/x86_64/7/updates/packages/
382M    /var/cache/yum/x86_64/7/updates/packages/
[root@localhost ~]# du -hs /var/cache/yum/x86_64/7/
1.1G    /var/cache/yum/x86_64/7/
[root@localhost ~]#

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(66) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
原文地址:https://www.cnblogs.com/ztguang/p/12648882.html