Skip to main content
Visitor II
October 20, 2021
Solved

How to install crontab on Stm32mp1? Inside starter package rfs, I found this file /etc/cron.daily/apt.apt-compat.cron.daily but crontab is not present: root@stm32mp1:~# crontab -sh: crontab: not found so the file will never be executed, am i correct?

  • October 20, 2021
  • 1 reply
  • 1155 views

I can't install crontab with apt-get install

apt-get install cron
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package cron

What do you suggest?

    This topic has been closed for replies.
    Best answer by Jean-Marc B

    Hi @Lmoio.1​ 

    The package to download is cronie:

    root@stm32mp1:~# apt-get update
    root@stm32mp1:~# apt-get install cronie
    root@stm32mp1:~# which crontab
    /usr/bin/crontab

    Best regards,

    --JM

    1 reply

    ST Employee
    October 20, 2021

    Hi @Lmoio.1​ 

    The package to download is cronie:

    root@stm32mp1:~# apt-get update
    root@stm32mp1:~# apt-get install cronie
    root@stm32mp1:~# which crontab
    /usr/bin/crontab

    Best regards,

    --JM

    Lmoio.1Author
    Visitor II
    October 20, 2021

    Hi Jean-Marc,

    thanks it worked!