CentOS7关闭yum自动下载更新
来源:互联网 发布:16年网络银行的法律 编辑:程序博客网 时间:2024/04/29 15:25
CentOS7最小化安装后默认yum会自动下载更新,这对许多生产系统是不需要的,可以手动关闭它
[root@engine cron.weekly]# cd /etc/yum
[root@engine yum]# ls
fssnap.d pluginconf.d protected.d vars version-groups.conf yum-cron.conf yum-cron-hourly.conf
编辑yum-cron.conf,将download_updates = yes改为no即可
[root@engine yum]# cat yum-cron.conf
[commands]
# What kind of update to use:
# default = yum upgrade
# security = yum --security upgrade
# security-severity:Critical = yum --sec-severity=Critical upgrade
# minimal = yum --bugfix upgrade-minimal
# minimal-security = yum --security upgrade-minimal
# minimal-security-severity:Critical = --sec-severity=Critical upgrade-minimal
update_cmd = default
# Whether a message should be emitted when updates are available,
# were downloaded, or applied.
update_messages = yes
# Whether updates should be downloaded when they are available.
download_updates = yes
# Whether updates should be applied when they are available. Note
# that download_updates must also be yes for the update to be applied.
apply_updates = no
# Maximum amout of time to randomly sleep, in minutes. The program
# will sleep for a random amount of time between 0 and random_sleep
# minutes before running. This is useful for e.g. staggering the
# times that multiple systems will access update servers. If
# random_sleep is 0 or negative, the program will run immediately.
# 6*60 = 360
random_sleep = 360
[emitters]
# Name to use for this system in messages that are emitted. If
# system_name is None, the hostname will be used.
system_name = None
# How to send messages. Valid options are stdio and email. If
# emit_via includes stdio, messages will be sent to stdout; this is useful
# to have cron send the messages. If emit_via includes email, this
# program will send email itself according to the configured options.
# If emit_via is None or left blank, no messages will be sent.
emit_via = stdio
# The width, in characters, that messages that are emitted should be
# formatted to.
ouput_width = 80
[email]
# The address to send email messages from.
email_from = root@localhost
# List of addresses to send messages to.
email_to = root
# Name of the host to connect to to send email messages.
email_host = localhost
[groups]
# NOTE: This only works when group_command != objects, which is now the default
# List of groups to update
group_list = None
# The types of group packages to install
group_package_types = mandatory, default
[base]
# This section overrides yum.conf
# Use this to filter Yum core messages
# -4: critical
# -3: critical+errors
# -2: critical+errors+warnings (default)
debuglevel = -2
# skip_broken = True
mdpolicy = group:main
# Uncomment to auto-import new gpg keys (dangerous)
# assumeyes = True
- CentOS7关闭yum自动下载更新
- CentOS7关闭自动下载更新
- CentOS7开启和关闭自动下载更新
- centos7更新yum源
- CentOS7更新yum源
- CentOS7更新yum源
- 关于Centos7的yum更新
- centos7 lnmp YUM更新php
- Centos7通过yum下载MariaDB
- Win10总是自动下载更新系统,该如何关闭?
- Linux关闭yum更新方法
- 如何关闭yum更新进程
- Centos7配置更新国内yum源
- CentOS7更改yum源与更新系统
- Centos7更新阿里云yum源
- centos7.x yum更新为网易源
- Linux系列—centos7 更新yum源
- yum update 自动忽略内核更新
- C++函数运算符重载
- python基础知识
- java.lang.RuntimeException
- 1042 Shuffling Machine
- HDU 2830 dp最大完全矩阵Matrix Swapping
- CentOS7关闭yum自动下载更新
- Linux系统忘记密码
- iOS减小导航栏button响应范围
- 调频,调幅与调相
- OC学习_4_关于多态
- css布局模型
- 如何将多个源文件编译为一个.ko
- 点击子对象,不解触发父对象click事件
- Dojo开发之布局容器和堆叠容器使用