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 ~]#
阅读(3063) | 评论(0) | 转发(0) |