[SOLVED] Make unattended-upgrades behavior similar to Update Manager?

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
Post Reply
ouroborus
Level 1
Level 1
Posts: 12
Joined: Tue Jan 06, 2015 10:53 pm

[SOLVED] Make unattended-upgrades behavior similar to Update Manager?

Post by ouroborus » Sun Jul 29, 2018 10:01 pm

I've gotten unattended-upgrades working and it updates some packages. However, I cannot figure out how to get it to update all the packages that get auto-selected in Update Manager.

Any ideas?
Last edited by Moem on Mon Jul 30, 2018 5:09 am, edited 1 time in total.
Reason: Marked this as [SOLVED] for you; please note that you can and should do this for your own topics. Thanks!

User avatar
smurphos
Level 8
Level 8
Posts: 2040
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: Make unattended-upgrades behavior similar to Update Manager?

Post by smurphos » Mon Jul 30, 2018 1:13 am

Which version of Mint are you using? I'm pretty sure unattended-updates is intended only for security flagged updates,.

In 18.2 and 18.3 update manager provides a CLI command mintupdate-tool

In Mint 19 it's mintupdate-cli with a revamped syntax

Both can be used in user scripts to automate updates, reflecting the levels system, including or excluding security, kernel updates etc.

If you are using Mint 19 the Update Manager GUI (Edit / Preferences) offers (disabled by default) a daily automated upgrade based on your Update manager settings.

In a nutshell if you are using 18.2 or later unattended-upgrades is not the tool for the job. :)

Code: Select all

steve@mint-toshiba ~ $ mintupdate-tool -h
usage: mintupdate-tool [-h] [-k | -nk] [-s] [-r] [-d] [-y]
                       [--install-recommends] [-l LEVELS]
                       command

positional arguments:
  command               command to run (possible commands are: list, upgrade)

optional arguments:
  -h, --help            show this help message and exit
  -k, --kernel          ignore settings and include all kernel updates
  -nk, --no-kernel      ignore settings and exclude all kernel updates
  -s, --security        ignore settings and include all security updates
  -r, --refresh-cache   refresh the APT cache
  -d, --dry-run         simulation mode, don't upgrade anything
  -y, --yes             automatically answer yes to all questions
  --install-recommends  install recommended packages (use with caution)
  -l LEVELS, --levels LEVELS
                        ignore settings and restrict to this list of levels

Code: Select all

steve@HP-Pavilion-g6-Notebook-PC:~$ mintupdate-cli -h
usage: mintupdate-cli [-h] [-k | -s | -l ONLY_LEVELS] [-i IGNORE] [-r] [-d]
                      [-y] [--install-recommends]
                      command

positional arguments:
  command               command to run (possible commands are: list, upgrade)

optional arguments:
  -h, --help            show this help message and exit
  -k, --only-kernel     only include kernel updates
  -s, --only-security   only include security updates
  -l ONLY_LEVELS, --only-levels ONLY_LEVELS
                        only include certain levels (only use for
                        troubleshooting, list of level numbers, comma-
                        separated)
  -i IGNORE, --ignore IGNORE
                        list of updates to ignore (comma-separated). Note: You
                        can also blacklist updates by adding their name to
                        /etc/mintupdate-cli.blacklist.
  -r, --refresh-cache   refresh the APT cache
  -d, --dry-run         simulation mode, don't upgrade anything
  -y, --yes             automatically answer yes to all questions
  --install-recommends  install recommended packages (use with cautio

ouroborus
Level 1
Level 1
Posts: 12
Joined: Tue Jan 06, 2015 10:53 pm

Re: Make unattended-upgrades behavior similar to Update Manager?

Post by ouroborus » Mon Jul 30, 2018 3:58 am

Excellent, this was exactly what I was looking for. Thank you

User avatar
Moem
Level 17
Level 17
Posts: 7029
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: [SOLVED] Make unattended-upgrades behavior similar to Update Manager?

Post by Moem » Mon Jul 30, 2018 5:09 am

Marked this as [SOLVED] for you; please note that you can and should do this for your own topics. Thanks!
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

Post Reply

Return to “Other topics”