how to set date+time for 'update manager' run

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
User avatar
SaintDanBert
Level 4
Level 4
Posts: 236
Joined: Sat Feb 20, 2010 4:04 pm
Location: Austin, TX USA

how to set date+time for 'update manager' run

Post by SaintDanBert » Thu Jun 28, 2018 10:51 am

I would like to set an exact time of day and day of week for 'update manager' runs. Can someone tell me how to do this?

The Mint 'update manager' offers a preference for how much time between (a) and initial run, then (b) subsequent runs.
Are these details internal to the 'update manager' utility or does it rely on something like cron or anacron to control
the scans for available updaes? I've not worked with cron-anything since my days doing Sun® Unix™ back in the 90s.

Thanks in advance,
~~~ 0;¬Dan
All government spending, regardless of the motives, uses YOUR money!
Any government extensive enough to give you anything that you want is also
powerful enough to take everything that you have.

Mattyboy
Level 6
Level 6
Posts: 1196
Joined: Thu Mar 26, 2015 2:17 pm

Re: how to set date+time for 'update manager' run

Post by Mattyboy » Thu Jun 28, 2018 11:20 am

Click on your update manager /edit/preferences/auto-upgrade

Code: Select all

sudo nano /path
or

Code: Select all

sudo vim /path
Whichever you prefer. Make your edits. Save and exit out.

User avatar
SaintDanBert
Level 4
Level 4
Posts: 236
Joined: Sat Feb 20, 2010 4:04 pm
Location: Austin, TX USA

Re: how to set date+time for 'update manager' run

Post by SaintDanBert » Mon Jul 02, 2018 3:49 pm

I don't find anything that wants me to edit anything.

All I get is two choices: (I have v5.3.2.3 running on Mint-18.3)

Code: Select all

     First refresh after:      days _____,  hours _____,  minutes _____
     then, refresh after:     days _____,  hours _____,  minutes _____
The default is one(1) day.

Foremost, I'd like to scan for updates only at times when the workstation is otherwise idle.
I would prefer to scan/re-scan every other {weekday} between 0100 and 0600 (early morning).
That would let me see new updates then next day, decide if I want to apply some or all of them
and then have a known opportunity to sort out whatever side-effects the updates presented.
For example: scan Thursday, apply Friday, recover (grin) weekend.

Thanks in advance,
~~~ 0;-Dan
All government spending, regardless of the motives, uses YOUR money!
Any government extensive enough to give you anything that you want is also
powerful enough to take everything that you have.

Mattyboy
Level 6
Level 6
Posts: 1196
Joined: Thu Mar 26, 2015 2:17 pm

Re: how to set date+time for 'update manager' run

Post by Mattyboy » Mon Jul 02, 2018 7:02 pm

Sounds like you'll need a script to run at specified times.

Code: Select all

#!/bin/bash
Then something along the lines of apt-get update.

Use the crontab

Code: Select all

crontab -e
to set a schedule for when you wish it to run.

It may be possible to an if on cpu load in accordance... bit over my head though, don't know.

User avatar
trytip
Level 7
Level 7
Posts: 1849
Joined: Tue Jul 05, 2016 1:20 pm

Re: how to set date+time for 'update manager' run

Post by trytip » Mon Jul 02, 2018 8:16 pm

didn't we walked away from windows because of automatic updates? it is better not to update, then to let the system go on auto and potentially break packages. many updates require monitoring and interaction. if you have to ask how to do something, you probably shouldn't do it.
a perfect computer would require no intervention on the user, but that same mentality makes the user uneducated and unable to solve simple issues should a breakage occur.
Image

User avatar
SaintDanBert
Level 4
Level 4
Posts: 236
Joined: Sat Feb 20, 2010 4:04 pm
Location: Austin, TX USA

Re: how to set date+time for 'update manager' run

Post by SaintDanBert » Sat Jul 21, 2018 6:33 pm

trytip wrote:
Mon Jul 02, 2018 8:16 pm
didn't we walked away from windows because of automatic updates? it is better not to update, then to let the system go on auto and potentially break packages. many updates require monitoring and interaction. if you have to ask how to do something, you probably shouldn't do it.
a perfect computer would require no intervention on the user, but that same mentality makes the user uneducated and unable to solve simple issues should a breakage occur.
I don't want automatic updates. Rather, I want 'mintUpdate' to scan for available updates and tell me what is available.
I want to choose WHEN (date & time) these scans happen. I want RESTRICTIONS on what is going on (system idle, load avg, login count, etc).
Now I can choose to implement system updates armed with information about what is available without having my workstation
spend resources scanning when I'd prefer to use those resources for something else.

Thanks in advance,
~~~ 0;-Dan
All government spending, regardless of the motives, uses YOUR money!
Any government extensive enough to give you anything that you want is also
powerful enough to take everything that you have.

User avatar
SaintDanBert
Level 4
Level 4
Posts: 236
Joined: Sat Feb 20, 2010 4:04 pm
Location: Austin, TX USA

Re: how to set date+time for 'update manager' run

Post by SaintDanBert » Sat Jul 21, 2018 6:41 pm

Mattyboy wrote:
Mon Jul 02, 2018 7:02 pm
Sounds like you'll need a script to run at specified times.
...
Out of the box, 'mintUpdate' already scans for available update on a periodic basis -- first time + days then other times + days.
I suspect that there is a cron or at entry out there somewhere buried in the system files. (NOTE -- I have not found it yet.)

A review of my process status, shows that 'mintUpdate' is out there running as a chiild of my login Desktop process. This implies that
'mintUpdate' might be running from its own internal clock -- check for updates; alter the tray indicator; sleep; repeat -- without using
cron or at. Given that mintUpdate is mostly python. I guess my only option is to read-the-code ... sigh.

Thanks in advance,
~~~ 0;-Dan
All government spending, regardless of the motives, uses YOUR money!
Any government extensive enough to give you anything that you want is also
powerful enough to take everything that you have.

Post Reply

Return to “Installation & Boot”