MX-Updater how to keep the apt cron job in the cron.daily folder  [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
usermx
Posts: 9
Joined: Tue Feb 21, 2023 4:40 pm

MX-Updater how to keep the apt cron job in the cron.daily folder

#1 Post by usermx »

Hello!
I want to change frequency checking updates. (for example on 7 days)

In "help-files" written:
"To slow down the frequency of checking, change the APT::Periodic::Update-Package-Lists setting in the /etc/apt/apt.conf.d/02periodic file from a “1” to a “7”, and keep the apt cron job in the cron.daily folder."
I'm changed file /etc/cron.daily/1-quick-live-update (uncomment: APT::Periodic::Update-Package-Lists "7";), this doesn't work.

I don't understand how to keep the apt cron job in the cron.daily folder to make it work.
Thanks.
Last edited by usermx on Wed Feb 22, 2023 3:16 am, edited 2 times in total.

User avatar
Eadwine Rose
Administrator
Posts: 15283
Joined: Wed Jul 12, 2006 2:10 am

Re: How to keep the apt cron job in the cron.daily folder

#2 Post by Eadwine Rose »

@usermx Your topic is here.

Please don't dig up really old solved topics, thanks!
MX-23.6_x64 July 31 2023 * 6.1.0-39amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
fehlix
Developer
Posts: 12928
Joined: Wed Apr 11, 2018 5:09 pm

Re: How to keep the apt cron job in the cron.daily folder

#3 Post by fehlix »

usermx wrote: Tue Feb 21, 2023 4:47 pm Hello!
I don't understand how to keep the apt cron job in the cron.daily folder.
Thanks.
Please formulate your question in a way which explains what you are going to achieve.
Thanks.

usermx
Posts: 9
Joined: Tue Feb 21, 2023 4:40 pm

Re: MX-Updater how to keep the apt cron job in the cron.daily folder

#4 Post by usermx »

I changed the post to make it clear.
Thanks.

User avatar
fehlix
Developer
Posts: 12928
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX-Updater how to keep the apt cron job in the cron.daily folder  [Solved]

#5 Post by fehlix »

usermx wrote: Tue Feb 21, 2023 4:47 pm In "help-files" written:
"To slow down the frequency of checking, change the APT::Periodic::Update-Package-Lists setting in the /etc/apt/apt.conf.d/02periodic file from a “1” to a “7”, and keep the apt cron job in the cron.daily folder."
The message you have quoted is out of context and as such not applicable out of date in MX Linux
+++EDIT+++: Oops, just found out, you referring to the message on the wiki, which would need some update,b/c
for some time apt-notifier had some changes in respect to unattended update/upgrades, which makes the help-text a candidate for an update.
usermx wrote: Tue Feb 21, 2023 4:47 pm I want to change frequency checking updates. (for example on 7 days)
...
I'm changed file /etc/cron.daily/1-quick-live-update (uncomment: APT::Periodic::Update-Package-Lists "7";), this doesn't work.
...
I don't understand how to keep the apt cron job in the cron.daily folder to make it work.
Thanks.
To change periodic update interval for updating package lists automatically can be done this way.

Example to change to 7 days:
* Create a file in /etc/apt/apt-conf.d/ with the file name 99apt-periodic-update-overwrite
File:

Code: Select all

/etc/apt/apt.conf.d/99apt-periodic-update-overwrite 
Content:

Code: Select all

APT::Periodic::Update-Package-Lists "7";
or on the command line create the file this way:

Code: Select all

cat <<EOF | sudo tee /etc/apt/apt.conf.d/99apt-periodic-update-overwrite 
APT::Periodic::Update-Package-Lists "7";
EOF

usermx
Posts: 9
Joined: Tue Feb 21, 2023 4:40 pm

Re: MX-Updater how to keep the apt cron job in the cron.daily folder

#6 Post by usermx »

fehlix wrote: Wed Feb 22, 2023 8:18 am
usermx wrote: Tue Feb 21, 2023 4:47 pm In "help-files" written:
"To slow down the frequency of checking, change the APT::Periodic::Update-Package-Lists setting in the /etc/apt/apt.conf.d/02periodic file from a “1” to a “7”, and keep the apt cron job in the cron.daily folder."
The message you have quoted is out of context and as such not applicable out of date in MX Linux
+++EDIT+++: Oops, just found out, you referring to the message on the wiki, which would need some update,b/c
for some time apt-notifier had some changes in respect to unattended update/upgrades, which makes the help-text a candidate for an update.
usermx wrote: Tue Feb 21, 2023 4:47 pm I want to change frequency checking updates. (for example on 7 days)
...
I'm changed file /etc/cron.daily/1-quick-live-update (uncomment: APT::Periodic::Update-Package-Lists "7";), this doesn't work.
...
I don't understand how to keep the apt cron job in the cron.daily folder to make it work.
Thanks.
To change periodic update interval for updating package lists automatically can be done this way.

Example to change to 7 days:
* Create a file in /etc/apt/apt-conf.d/ with the file name 99apt-periodic-update-overwrite
File:

Code: Select all

/etc/apt/apt.conf.d/99apt-periodic-update-overwrite 
Content:

Code: Select all

APT::Periodic::Update-Package-Lists "7";
or on the command line create the file this way:

Code: Select all

cat <<EOF | sudo tee /etc/apt/apt.conf.d/99apt-periodic-update-overwrite 
APT::Periodic::Update-Package-Lists "7";
EOF
Thanks, I will try and report back.

usermx
Posts: 9
Joined: Tue Feb 21, 2023 4:40 pm

Re: MX-Updater how to keep the apt cron job in the cron.daily folder

#7 Post by usermx »

Everything works fine, thanks for the help!

Post Reply

Return to “MX Help”