I have a server running CentOS 6.2 minimal, but it doesn't appear to have crontab installed by default?

crontab -e
-bash: crontab: command not found

In searching google, I found references to a "vixie-cron" and "anacronda" but no complete answer on what the official/supported way of getting cron to work on CentOS 6 is.

Maybe someone can shed some light on this?


rpm -qf `which crontab`
/usr/bin/which: no crontab in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
rpm: no arguments given for query
  • 2
    You can't which something that doesn't exist on your host. I think what you are looking for is yum provides */crontab. Aug 9, 2012 at 22:40

1 Answer 1

# rpm -qf `which crontab`

Vixie-cron was replaced with Cronie in EL6. Likely it wasn't installed in your "minimal" installation; they really do strive to be minimal with it.

  • Thanks, yum install cronie seems to have done the trick. Do you know how to set which editor crontab -e uses by default?
    – Nick
    Aug 9, 2012 at 22:42
  • 1
    That's a separate question. Read it here. Aug 9, 2012 at 22:57
  • 4
    It looks like I also have to do service crond start and chkconfig crond on, regarding this question. Thanks for the other answer, got it working.
    – Nick
    Aug 9, 2012 at 23:22

You must log in to answer this question.

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