MX updater query  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
compass
Posts: 25
Joined: Sun Feb 25, 2024 2:13 pm

Re: MX updater query

#11 Post by compass »

> In MX-21.3 Xfce, 'start MX Updater at login' is/was checked by default, but I think the OP wants to know if the actual checking for update time-after-login or boot can be set. You could change this in many Xfce distros, but it's not readily available in MX. Something like check for updates 10 minutes after login, etc.

Bingo.

Many thanks for taking the time to understand my concern.


> but it's not readily available in MX. Something like check for updates 10 minutes after login, etc.

At the risk of repetition...

Yes!!!

I would want to tell MX to check for updates after I have been logged in for ~whatever reasonable ~ time period. I do not want to, or see the need to, manually check for those updates.

In my view, that is what computers are for. To automate mundane tasks.

Thank-you for recognizing that aspect of this.

compass
Posts: 25
Joined: Sun Feb 25, 2024 2:13 pm

Re: MX updater query

#12 Post by compass »

And, if I may ask,

Why is this thread marked "Solved" ?

MX updater query [Solved]by compass » Mon Mar 18, 2024 1:00 am » in MX Help

User avatar
DukeComposed
Posts: 1507
Joined: Thu Mar 16, 2023 1:57 pm

Re: MX updater query

#13 Post by DukeComposed »

compass wrote: Mon Mar 18, 2024 12:54 am > MX Updater already sets a timer to check for updates approximately once every minute.

If that is the case, then why do I not see the "updates available" icon rendition unless and until I specifically click on the "Check for Update" menu option?
"It skips most of these checks if the files it watches for updates haven't been changed and if the user hasn't instantiated the check." I literally explained that.

You're confusing MX Updater, a notification utility, with apt-get or Synaptic, which fetches package information from repositories.

compass
Posts: 25
Joined: Sun Feb 25, 2024 2:13 pm

Re: MX updater query

#14 Post by compass »

> You're confusing MX Updater, a notification utility, with apt-get or Synaptic, which fetches package information from repositories.

Am I?

In my view, I am not making that erroneous conflation.

Indeed, I have stated that MX Updater did not notify me when updates were available.

Notice the phrasing, "MX Updater did not notify me when updates were available."


Notify me if updates are available.

To state my concern once again....

The MX Updater icon does not show when updates are available. But If I OMB click on the icon and select "Check for Updates" I see that updates are available.

Why do I have to manually check for updates via MX Updater? <--- my main question.

Why can I not configure MX Updater to check automagically for updates after a reasonable period after I log on to the laptop?

thx.

compass
Posts: 25
Joined: Sun Feb 25, 2024 2:13 pm

Re: MX updater query

#15 Post by compass »

And, btw,

I just asked MX Updater to Check for Updates.

Guess what, it tells me that updates are available.

I've been logged on to the laptop for, how many hours this evening, 5, 6?

But MX Updater did not tell me about available updtaes until I just asked it to check?

Yeah, that's wrong on a couple of levels.

User avatar
FullScale4Me
Posts: 1167
Joined: Fri Jan 08, 2021 11:30 pm

Re: MX updater query

#16 Post by FullScale4Me »

Right clicking MX Updater icon in Taskbar gives:
HELP: MX Apt-notifier wrote: MX-Updater (formerly called apt-notifier) checks the repos to look for package updates. A cronjob (a scheduled task using cron) does a check at a random time between 5 and 35 minutes after bootup if it’s been more than 24 hours since the last check. If the machine is then left running continuously, the cronjob runs again at 07:35 AM daily and rechecks (also at a random time between 5 and 35 minutes after the cronjob start).
To get it to do something different requires modifying the cronjobs.
Michael O'Toole
MX Linux facebook group moderator
Dell OptiPlex 7050 i7-7700, MX Linux 23 Xfce & Win 11 Pro
HP Pavilion P2-1394 i3-2120T, MX Linux 23 Xfce & Win 10 Home
Dell Inspiron N7010 Intel Core i5 M 460, MX Linux 23 Xfce & KDE, Win 10

Stuart_M
Posts: 705
Joined: Wed Aug 07, 2019 7:10 pm

Re: MX updater query

#17 Post by Stuart_M »

I believe the frequency that MX Updater will check for updates (more than the default of only once per day) can be changed, as well as how soon it will check for updates after logging in, which is once per day (default is a random 30 minutes or so). My thoughts:
compass wrote: Sun Mar 17, 2024 11:41 pm ...
My question is -- how can I determine/configure how long it waits after I log-in before it decides to tell me about available updates.
I've read and re-read this thread several times and I think the below may answer your question and give some insight on how it would be done...I said "I think" because I have not tested nor studied the below very much. It is based on what I use, MX-19 Xfce, and is probably the same as MX-23 Xfce.

The MX Updater (apt-notifier) by default will automatically run once and only once per day (of course you can manually run it anytime you want). I don't believe it makes this check for multiple log-in sessions in one calendar day (I base this only on my own experience in MX-19). The automatic check for updates occurs randomly, after about 30 minutes from logging in on a new day.

I think the script that determines that random time (around 30 minutes) is located in /etc/cron.daily/apt-compat. In the apt-compat file, go to line 35 and you will see "RandomSleep=1800" (30 minutes). Line 49 is "random_sleep" so I would imagine commenting that line out would remove the randomness. I think changing the "RandomeSleep" value to something other than 1800 seconds will adjust when MX Updater will automatically check for updates.

Based on your other posts I got the feeling that you also wanted the ability to adjust the frequency of this automatic check. Maybe more often that only once per day?

One thing in the apt-compat file that appears to affect the frequency of checking for updates would seem to be the last lines (lines 54-55) that identifies the script to be run daily. If you want it to automatically run more often then I presume it would have to be set to run on some hourly schedule, but I don't know how that would be done. Maybe change the last line from "exec /usr/lib/apt/apt.systemd.daily" to "exec /usr/lib/apt/apt.systemd.hourly", and then move the apt-compat file from /etc/cron.daily/ to /etc/cron.hourly/?? It has been said that just moving the apt cron job (I presume the apt-compat file) to the cron.hourly/ file does not work, at least in MX-18 (viewtopic.php?p=499357#p499357 - relevant portion quoted below).
I've never tried moving the apt cron job from cron.daily to cron.weekly to get it to update less frequently, I know moving the apt cron job to cron.hourly doesn't work if you want it to update more frequently.
Another possibility may be to create a cron job that will run whatever is used to manually run the MX Updater, whatever that command or script is.

User avatar
DukeComposed
Posts: 1507
Joined: Thu Mar 16, 2023 1:57 pm

Re: MX updater query

#18 Post by DukeComposed »

compass wrote: Mon Mar 18, 2024 3:18 am > You're confusing MX Updater, a notification utility, with apt-get or Synaptic, which fetches package information from repositories.

Am I?

In my view, I am not making that erroneous conflation.
You are. As FullScale4Me points out, MX Updater used to be called apt-notifier, and as I've pointed out, the source code repository. still calls it that.
compass wrote: Mon Mar 18, 2024 3:18 am > You'reIndeed, I have stated that MX Updater did not notify me when updates were available.

Notice the phrasing, "MX Updater did not notify me when updates were available."
Noted. Duly.

apt-notifier notifies. We've all seen it happen. What you're upset about is that it doesn't perform the equivalent of "apt-get update" immediately upon system startup. It checks for updates at a frequency suitable for most users and which minimizes load spikes or thundering herd problems. You can force your system to check more often or at regular intervals. You can automate this with cron. But it's not built to do this on purpose and it never will be.

If you want to patch your machine every ten minutes, consider running Arch.

MXRobo
Posts: 1841
Joined: Thu Nov 14, 2019 12:09 pm

Re: MX updater query

#19 Post by MXRobo »

I'll admit that I don't know how this works but patching your machine every ten minutes may be a bit of a strawman as I don't think that the OP is too concerned with how OFTEN it checks for updates but is concerned with the time after login that it checks for updates. But as has been pointed out, "To get it to do something different requires modifying the cronjobs." and I'm not sure that the frequency will help.

I'm not - and can't – offering much help, so Good Luck!

User avatar
artytux
Posts: 398
Joined: Wed Apr 26, 2023 3:58 am

Re: MX updater query

#20 Post by artytux »

@compass
If so, please explain the apparent need for /etc/cron and all the associated directories.

OK i'm not mention cron OR someone alse not me, so please you explain where you got cron from from me , what I did write because I would like to know.
" Outside the square , inside the cube "

Post Reply

Return to “MX Help”