How to get which version of cron daemon is running

Background: I am working on CentOS


# cat /proc/version
Linux version 2.6.18-308.4.1.el5PAE ( (gcc version 4.1.2 20080704 (Red Hat 4.1.2-52)) #1 SMP Tue Apr 17 17:47:38 EDT 2012

Question: How can i know which version cron daemon installed and running on machine

On your centos system: rpm -q vixie-cron

Should be something like vixie-cron-4.1-77.el5_4.1

Answered By: Dennis Kaarsemaker

The dummy way:

whereis -b crontab | cut -d' ' -f2 | xargs rpm -qf
Answered By: MeaCulpa

In EL6, you can check the version of cronie (contains crond) with yum:

sudo yum list installed cronie

fyi, cronie replaced vixie-cron in EL6.

Answered By: Banjer
Categories: Answers Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.