[Fedora 44]: add cron hourly, daily, weekly, monthly to crontab

Fedora 44 add cron hourly, daily, weekly, monthly to crontab witch is empty after (fresh) installation. to keep system up-to-date …

run at 10:00 am..

  • */1 * * * root run-parts /etc/cron.hourly
  • 10 * * * root run-parts /etc/cron.daily
  • 10 * * 6 root run-parts /etc/cron.weekly
  • 10 * 1 * root run-parts /etc/cron.monthly

The Fedora KDE default is to do daily, weekly and monthly jobs in anacron, not in cron.

That seems like a saner default for a desktop system. You don’t expect it to necessarily be switched on 24 hours a day, and anacron deals naturally with this.

cat /etc/anacrontab gives:

# /etc/anacrontab: configuration file for anacron
    
# See anacron(8) and anacrontab(5) for details.
    
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# the maximal random delay added to the base delay of the jobs
RANDOM_DELAY=45
# the jobs will be started during the following hours only
START_HOURS_RANGE=3-22
    
#period in days   delay in minutes   job-identifier   command
1       5       cron.daily              nice run-parts /etc/cron.daily
7       25      cron.weekly             nice run-parts /etc/cron.weekly
@monthly 45     cron.monthly            nice run-parts /etc/cron.monthly