I'd like to setup a job using anacron on my desktop PC running Debian GNU/Linux 10 (buster).

The anacron package seems to be installed properly: running sudo apt install anacron returns

anacron is already the newest version (2.3-28). 
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

man anacron opens the man page properly, but surprisingly, anacron -h returns

-bash: anacron: command not found

What could be possibly going on ?

Thanks !

  • Maybe /usr/sbin is not in your PATH.
    – Bodo
    Commented Sep 4, 2020 at 11:27

1 Answer 1


The Debian package anacron installs the executable anacron as /usr/sbin/anacron.

If /usr/sbin is not part of your PATH variable's value, then you would have to specify the full path to the utility to execute it, like so:

$ /usr/sbin/anacron -h
  • Thanks @Kusalananda♦ and @Bodo, that was it ! Commented Sep 5, 2020 at 12:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .