Steps to install crond or crontab on CentOS/RHEL servers, Linux

Installation steps – for CentOS/RHEL 6

This is how I install crond onto my CentOS server edition as it doesn’t seem to come preinstalled, this might not be true for other distributions and the following command may not work for all distributions.

Execute the following command:

 
yum -y install vixie-cron crontabs

And then start it with:

 
/sbin/service crond start

To start the daemon on boot, add it to chkconfig:

 
chkconfig crond on

That’s it dude!!

Hey, I have a CentOS 7 / RHEL 7 server. How can I enable crond on it?

On CentOS 7 vixie-cron is not longer available, so you need to use cronie to install cron daemon on this server. Please use the following command to install crond on CentOS 7 server:

 
yum install cronie

That’s it!!

Let me know if you’ve any questions!

Post navigation

Arunlal A

Engineer. Linux enthusiast. Traveller. DevOps learner and practitioner. I enjoy working with Linux, DevOps, automation, and technology while exploring new places along the way. I use this space to share my experiences, learnings, experiments, and things I discover along the journey. Whether you're a seasoned DevOps professional or just getting started, let's connect, learn, and grow together. Happy coding, automating, and deploying!

3 thoughts on “Steps to install crond or crontab on CentOS/RHEL servers, Linux”

Leave a Reply

Your email address will not be published. Required fields are marked *