| Written by: | Alexio |
Score: 11 votes: 12 Format: Article |
How to enable unattended software updates on Linux Mint
Installation of software updates are very important in every operating system. We can either configure the installation of package updates manually or automatically in Linux Mint. This tutorial explains you how to enable the installation of software package updates automatically in the Ubuntu-based editions of Linux Mint.
Open your terminal and run the update:
sudo apt-get update
Install the “unattended-upgrades” package:
sudo apt-get install unattended-upgrades
This is the package used to install the updated packages automatically.
The configuration files are located at /etc/apt/apt.conf.d
To configure the unattended-upgrades edit the /etc/apt/apt.conf.d/50unattended-upgrades file and make changes according to your need:
// Automatically upgrade packages from these (origin, archive) pairs
Unattended-Upgrade::Allowed-Origins {
"${distro_id} ${distro_codename}-security";
// "${distro_id} ${distro_codename}-updates";
// "${distro_id} ${distro_codename}-proposed";
// "${distro_id} ${distro_codename}-backports";
};
Note : “ // “ is a comment line. So whatever follows by the comment line ( // ) cannot be evaluated.
To enable the updates simply remove the comment line ( // ).
If you dont want to install the software updates for certain packages, just add those package names in the Blacklist:
// List of packages to not update
Unattended-Upgrade::Package-Blacklist {
// "vim";
// "libc6";
// "libc6-dev";
// "libc6-i686";
};
The results of unattended-upgrades will be logged to /var/log/unattended-upgrades
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 "0"; APT::Periodic::AutocleanInterval "30"; 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 thirty days.
Note : Here the number represents the days.
Tags: update automatic unattended
Created: 3 months ago.
Last edited: 3 months ago.
Reviewed: 3 months ago.
Read 0 times.
| Comments | |||
| 1 month ago |
windyweather |
This doesn't work. After a couple of days I find the shield has an "i" in it and the updates were not installed. Something is left out for LM 14. No Joy for automatic updates. ww |
|
| 1 month ago |
windyweather |
Minor issue I think. I'm trying this on LM 14 and I don't find the 10periodic file. Do I need to create that file? Guess I'll create it with the contents you suggest. ww |
|
| 3 months ago |
AshBaby |
Thanks, very concise and clear. | |
| 3 months ago |
sujitnag |
very impotent information | |
| 3 months ago |
Hammer459 |
Nice and clear tutorial | |
| 3 months ago |
telcnas |
thanks for this nice info...... :) | |
Other tutorials from Alexio
- The Perfect Desktop - Linux Mint 8 (Helena)
- The Perfect Desktop - Linux Mint 7 (Gloria)
- The Perfect Desktop - Linux Mint 6 (Felicia)
- The Perfect Desktop - Linux Mint 5 (Elyssa)
- The Perfect Desktop - Linux Mint 4 (Daryna)
- The Perfect Desktop - Linux Mint 3.1 (Celena)
- Ubuntu Pocket Guide and Reference
- Selection of Linux Tutorials
- The Linux Documentation Project
- The GNOME 2.32 Desktop User Guide
- How to make a dual-boot into Windows put the "pagefile.sys" onto the linux-swap partition
- GNU/Linux Desktop Survival Guide
- Ubuntu Guide
- Ubuntu Manual
- Keyboard Shortcuts for the GNOME Desktop
- Linux From Scratch
- Keyboard Shortcuts for the KDE Desktop
- The Perfect Desktop - Linux Mint 9 (Isadora)
- Download entire websites easy
- How-to index on the Linux Mint forum
- Search Launchpad PPAs and add them to your software repositories list
- Every Question About Ubuntu Answered
- Ubuntu Apps - application directory, tips, and customization guide
- Linux Terminal Command Reference
- How to get and install Linux games - Full tutorial
- Instructions for community.linuxmint.com
- OpenOffice.org and LibreOffice Keyboard Shortcuts
- Install and Optimize Linux Mint on a Solid State Drive
- Run Linux Mint in Windows without any configuration or installation
- The Perfect Desktop - Linux Mint 10 (Julia)
- The Perfect Desktop - Linux Mint Debian 201009
- Firefox Keyboard and Mouse Shortcuts
- A quick way to make Linux Mint look like Mac OS X
- How to customize the Linux Mint looks
- Install LibreOffice 3.3 on Linux Mint 9 and 10
- Install Firefox 9 Final on Linux Mint 9 and 10
- Reset forgotten/lost main user password in Linux Mint
- How To Save Downloaded Files to Selected Folders based on Filters
- Linux Filesystem Explained
- Assign Custom Shortcut Keys in Linux Mint
- Install Nautilus Elementary on Linux Mint 10
- Flash Video Replacer
- Install fonts on Linux Mint using Terminal commands
- How to manage the recent notifications for the GNOME desktop
- How to add videos to the Linux Mint Community Videos website
- How to fix broken packages using the Command Line
- Upgrade to Firefox 18 Beta and test Firefox 20 Alpha on Linux Mint
- How to setup the fastest server for updates using Synaptic
- Rotate Your Wallpapers with Webilder in Linux Mint 11
- Converting Audio Files On Linux Mint
- Popper - the e-mail notifier and indicator
- How to install Kazam Screencaster to create and upload screencasts
- Upgrade Thunderbird to version 12 Beta or to version 15 Alpha on Linux Mint
- How to easily download files from more than 40 websites, including Linux Mint videos
- MultiSystem – Create a MultiBoot USB from Linux Mint
Ideas
Tutorials
Hardware
Software
Countries
Users
Moderation
Chat room
ISO Images