ubuntu Server 14 自动更新
2015-04-21 09:41
225 查看
https://help.ubuntu.com/stable/serverguide/automatic-updates.html
http://spin.atomicobject.com/2014/08/04/debian-ubuntu-security-updates/ =》 介绍了自动安装是怎么来的,包括如何配置已经安装了“自动安装”的系统
本文完成时间:2015-04-21
当前UbuntuServer最新稳定版 14.10
内容介绍如下:
自动更新
The unattended-upgrades package can be used to automatically install updated packages, and can be configured to update all packages or just install security updates. First, install the package by entering the following in a terminal:
sudo apt-get install unattended-upgrades
To configure unattended-upgrades, edit /etc/apt/apt.conf.d/50unattended-upgrades and adjust the following to fit your needs:
Unattended-Upgrade::Allowed-Origins {
"Ubuntu trusty-security";
// "Ubuntu trusty-updates";
};
Certain packages can also be blacklisted and therefore will not be automatically updated. To blacklist a package, add it to the list:
Unattended-Upgrade::Package-Blacklist {
// "vim";
// "libc6";
// "libc6-dev";
// "libc6-i686";
};
The double “//” serve as comments, so whatever follows "//" will not be evaluated.
To enable automatic updates, edit /etc/apt/apt.conf.d/10periodic and set the appropriate apt configuration options:
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";
The above configuration updates the package list, downloads, and installs available upgrades every day. The local download archive is cleaned every week.
You can read more about apt Periodic configuration options in the /etc/cron.daily/apt script header.
The results of unattended-upgrades will be logged to /var/log/unattended-upgrades.
通知
通知
Configuring Unattended-Upgrade::Mail in /etc/apt/apt.conf.d/50unattended-upgrades will enable unattended-upgrades to email an administrator detailing any packages that need upgrading or have problems.
Another useful package is apticron. apticron will configure a cron job to email an administrator information about any packages on the system that have updates available, as well as a summary of changes in each package.
要安装 apticron 软件包,在终端中输入:
sudo apt-get install apticron
软件包安装后,编辑 /etc/apticron/apticron.conf 来设置电子邮件地址和其他选项:
EMAIL="root@example.com"
http://spin.atomicobject.com/2014/08/04/debian-ubuntu-security-updates/ =》 介绍了自动安装是怎么来的,包括如何配置已经安装了“自动安装”的系统
本文完成时间:2015-04-21
当前UbuntuServer最新稳定版 14.10
内容介绍如下:
自动更新
The unattended-upgrades package can be used to automatically install updated packages, and can be configured to update all packages or just install security updates. First, install the package by entering the following in a terminal:
sudo apt-get install unattended-upgrades
To configure unattended-upgrades, edit /etc/apt/apt.conf.d/50unattended-upgrades and adjust the following to fit your needs:
Unattended-Upgrade::Allowed-Origins {
"Ubuntu trusty-security";
// "Ubuntu trusty-updates";
};
Certain packages can also be blacklisted and therefore will not be automatically updated. To blacklist a package, add it to the list:
Unattended-Upgrade::Package-Blacklist {
// "vim";
// "libc6";
// "libc6-dev";
// "libc6-i686";
};
The double “//” serve as comments, so whatever follows "//" will not be evaluated.
To enable automatic updates, edit /etc/apt/apt.conf.d/10periodic and set the appropriate apt configuration options:
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";
The above configuration updates the package list, downloads, and installs available upgrades every day. The local download archive is cleaned every week.
You can read more about apt Periodic configuration options in the /etc/cron.daily/apt script header.
The results of unattended-upgrades will be logged to /var/log/unattended-upgrades.
通知
通知
Configuring Unattended-Upgrade::Mail in /etc/apt/apt.conf.d/50unattended-upgrades will enable unattended-upgrades to email an administrator detailing any packages that need upgrading or have problems.
Another useful package is apticron. apticron will configure a cron job to email an administrator information about any packages on the system that have updates available, as well as a summary of changes in each package.
要安装 apticron 软件包,在终端中输入:
sudo apt-get install apticron
软件包安装后,编辑 /etc/apticron/apticron.conf 来设置电子邮件地址和其他选项:
EMAIL="root@example.com"
相关文章推荐
- ubuntu server版配置关闭系统自动更新
- ubuntu server设置时区和更新时间
- ubuntu关闭自动更新、打开 ubuntu 的 apport 崩溃检测报告功能
- ubuntu server 12.04.1和14.04.1 更新源的修改办法
- Ubuntu Server12.04 Mysql 自动备份
- webpack自动更新插件 webpack-dev-server
- Ubuntu下自动更新Firefox的Adobe flash player
- pxe+kickstart网络自动安装ubuntu server 11.10
- ubuntu server设置时区和更新时间
- 我的Ping自动更新通知-最有价值的Ping Server API
- UbuntuServer的mysql和webapps全自动异地备份
- Ubuntu Server 14下搭建PHP与Java的运行环境
- Ubuntu Server 中实现自动部署提交到SVN的代码
- ubuntu server下建立分区表/分区/格式化/自动挂载(转)
- 搭建Pxe服务器无人听应答全自动安装Ubuntu 14.04.4 server系统
- centos 和 ubuntu 自动更新系统
- Ubuntu Server 14.04 安装+安全Web服务器(linux+apache+mysql+php)搭建流程(更新)
- Ubuntu服务器的NVIDIA驱动自动更新所引起的问题及解决方法m
- Ubuntu 自动更新系统时间