oio11: (Default)
[personal profile] oio11
Home > DEBIAN/UBUNTU, HOW-TOS > Automatic download and upgrade of packages In Debian/Ubuntu

Automatic download and upgrade of packages In Debian/Ubuntu

April 28th, 2010
debianThe apt package comes with its own cron script “/etc/cron.daily/apt” to support the automatic download of packages. This script can be enhanced to perform the automatic upgrade of packages by installing the unattended-upgrades package. These can be customized by parameters in “/etc/apt/apt.conf.d/02backup” and “/etc/apt/apt.conf.d/50unattended-upgrades” as described in “/usr/share/doc/unattended-upgrades/README”.
The unattended-upgrades package is mainly intended for the security upgrade for the stable system. If the risk of breaking an existing stable system by the automatic upgrade is smaller than that of the system broken by the intruder using its security hole which has been closed by the security update, you should consider using this automatic upgrade with configuration parameters as the following.
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::Unattended-Upgrade "1";
If you are running an unstable system, you do not want to use the automatic upgrade since it certainly breaks system some day. Even for such unstable case, you may still want to download packages in advance to save time for the interactive upgrade with configuration parameters as the following.
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::Unattended-Upgrade "0";

http://segfault.in/2010/04/automatic-download-and-upgrade-of-packages-for-debian-ubuntu/

May 2025

S M T W T F S
    123
45678910
11121314151617
181920212223 24
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 9th, 2025 10:05 am
Powered by Dreamwidth Studios