Update Manager is constantly offering me updates (e.g. security fixes, updates from PPAs).
How can I tell my Ubuntu installation to automatically download and install updates whenever they become available?
|
Update Manager is constantly offering me updates (e.g. security fixes, updates from PPAs). How can I tell my Ubuntu installation to automatically download and install updates whenever they become available? |
||||
|
|
|
You can do this for security updates, but not for all updates, or at least not very easily. To enable automatic security updates: From System Settings open Update Manager. Click the 'Settings...' button, then on the 'Updates' tab, select the radio button 'Install security updates without confirmation.' |
||||
|
|
|
Using unattended-upgrades is the best practice of having automatic updates! You can set up unattended-upgrades pretty easily by typing this in a terminal:
From the description:
|
|||||||
|
|
In the Update Manager click the
Select the "Install security updates without confirmation". This will automatically install security updates. If you want to set this up for them remotely via, you can do this:
If the package is installed already you can do:
to change it's behavior. Follow the prompts to enable the feature once you run the command. There's currently no graphical method to just set the entire system to update unattended for everything (you want to play it safe when it comes to automatic upgrades), but setting security updates automatically is a good idea. Check out the pages for more information if you want to automate getting -updates and -backports: |
||||
|
|
|
Go to terminal, and enter:
Say "yes" to the prompt. You'll still be notified about "normal" updates, such as those that contain bugfixes, but security updates will be installed automatically. |
|||
|
|
|
I use apticron to get informed by mail if an update needs to be done. In your case, I would use "cron-apt" or "unattended-upgrades" to do the job of automagically updating your machines. |
|||
|
|