天天看點

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 ~]#

繼續閱讀