Changing the Update Manager Server from the Command Line

Liam Proven lproven at
Fri Jan 8 14:38:11 UTC 2016

On 8 January 2016 at 15:30, Amichai Rotman <amichai at> wrote:
> Hi All,
> I am writing a BASH post install script to run after an Ubuntu vanilla
> installation.
> This is what I do today, manualy via the GUI:
> I open 'Software & Updates':
> "Ubuntu Software' tab: I check all boxes, except for the "Source Code". I
> change the server from the auto-detected one to 'Main'.
> Under the "Other Software tab: I check both "Canonical Partners".
> Under the "Updates" tab: I check all check boxes. Set the "Automatically
> check fr updates" to "Weekly". Set "When there are security updates" to
> "Automatically download and install". Set  "When there are other updates" to
> "Display Immediately".
> Run a check for additional drivers.
> I'd like to do all this via a Bash script. Where  can I find the command
> line switches for the Software & updates?
> Thanks!

Wouldn't it be more logical to find what changes the GUI writes to
what config files, and then change those config files directly from
your script?

Liam Proven • Profile:
Email: lproven at • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: lproven at • Skype/AIM/Yahoo/LinkedIn: liamproven
Cell/Mobiles: +44 7939-087884 (UK) • +420 702 829 053 (ČR)

More information about the ubuntu-users mailing list