I want to be sure if automatic updates are enabled on Ubuntu 12.04 server.
How exactly can I check this?
And how can I disable automatic updates if it's enabled?
|
There is a package that can be used to do this for you.
or if unattended-upgrades already installed. Or you can checkout the Ubuntu docs
That is the package you need to install. Once its installed edit the files
In that file you can set how often you want the server to update.
The file should look like that. The 1 means it will update every day. 7 is weekly.
This files will let you chose what updates you want to make by choosing where apt can search for new updates and upgrades. ( My personal opinion on this is I would set it to security if this is a server )
The variables |
|||||||||||||||||||||
|
|
Automatic Updates are enabled by default. If not, to enable automatic updates, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.
In server, you can also you can edit |
|||||
|
|
Check the logs at |
|||||
|
|
(I made another answer, because my changes to LinuxBill's answer were rejected.) There is a package that can be used to do enable automatic updates for you. It is called unattended-upgrades. Use the following command to enable/disable automatic updates:
That command will modify file Alternatively you can enable automatic updates GUI way by Alternatively you can modify the aforementioned file(s) manually. In that file you can set how often you want update be called:
The file should look like that. The 1 means it will update every day. 7 is weekly. Variable APT::Periodic::AutocleanInterval determines how often "apt-get autoclean" is executed automatically. 0 means disable for these variables. You can change the way unattended upgrades work by editing file
The variables You may want to change
to
That will automatically remove e.g. excessive old kernels so that /boot does not become full. There is more information in Ubuntu docs. |
||||
|
|
apt-get updatemean different things by "update." I think this ship has sailed. There's a meta post though. – Eliah Kagan Aug 25 '17 at 15:32