What is the correct way of getting crontab on CentOS 6?

Nick asked:

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?

update:

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

My answer:


# rpm -qf `which crontab`
cronie-1.4.4-7.el6.x86_64

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.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.