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?
[SOLVED] Make unattended-upgrades behavior similar to Update Manager?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[SOLVED] Make unattended-upgrades behavior similar to Update Manager?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: Make unattended-upgrades behavior similar to Update Manager?
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
In Mint 19 it's
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.
In 18.2 and 18.3 update manager provides a CLI command
mintupdate-tool
In Mint 19 it's
mintupdate-cli
with a revamped syntaxBoth 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
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Re: Make unattended-upgrades behavior similar to Update Manager?
Excellent, this was exactly what I was looking for. Thank you
Re: [SOLVED] Make unattended-upgrades behavior similar to Update Manager?
Marked this as [SOLVED] for you; please note that you can and should do this for your own topics. Thanks!
If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!