Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
share|improve this question
You can't which something that doesn't exist on your host. I think what you are looking for is yum provides */crontab. – Aaron Copley Aug 9 '12 at 22:40
up vote 15 down vote accepted
# 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.

share|improve this answer
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 '12 at 22:42
That's a separate question. Read it here. – Michael Hampton Aug 9 '12 at 22:57
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 '12 at 23:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.