Saturday, May 18, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 534  / 3 Years ago, tue, july 20, 2021, 11:43:22

Is there a way to make the update notifier check for updates daily (like you could in Software & Updates) from the command line or by editing a file? I checked the GSettings schemas, but didn't find any keys that change values if I change the frequency in the graphical menu, so I don't think it's any of those.


More From » command-line

 Answers
3

Update Notifier already checks daily.


It's an apt systemd timer. It runs at a different random time each day.


In this example, you can see that apt-daily (which runs sudo apt update) ran 4:24 ago, and will run again in 1:37.


$ systemctl list-timers apt-daily.timer
NEXT LEFT LAST PASSED UNIT ACTIVATES
Tue 2020-10-13 22:15:09 CDT 1h 37min left Tue 2020-10-13 16:12:52 CDT 4h 24min ago apt-daily.timer apt-daily.service



  • Randomization: The randomization evens out the load on the mirrors. Those mirrors are storage and bandwidth volunteered by organizations worldwide -- be very nice to them.


    The random time is set by a line in /lib/systemd/system/apt-daily.timer. You can disable it and set a specific daily time, but remember to be a good neighbor: Don't hammer mirrors by picking a common time. If possible, leave the randomization alone. It works.




[#2546] Wednesday, July 21, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hentor

Total Points: 482
Total Questions: 104
Total Answers: 111

Location: South Korea
Member since Sun, Dec 25, 2022
1 Year ago
hentor questions
Fri, Feb 24, 23, 22:52, 1 Year ago
Sun, Sep 5, 21, 15:39, 3 Years ago
Wed, Aug 31, 22, 21:55, 2 Years ago
Sun, Jul 17, 22, 09:25, 2 Years ago
;