Super User is a question and answer site for computer enthusiasts and power users. 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

Here is the problem: I'm trying to find what cron software is running on my machine, however question applies to any generic process. One way to do it is:

Find the process

ps aux |grep cron

Find the link to binary

ls -la /proc/PID_FROM_ABOVE/exe

This is my case returned

lrwxrwxrwx 1 root root 0 Jan 17 07:22 /proc/3363/exe -> /usr/sbin/crond

Now crond is just an executable. I'm interested in finding the rpm responsible for this executable. Is there any direct way?

I was able to estimate it was vixie-cron using

rpm -qa| grep cron

However, there has to be some better way.

share|improve this question
up vote 1 down vote accepted

Or, if you prefer using rpm:

rpm -qf /usr/sbin/crond
share|improve this answer
@PunjCoder: this is faster and better in your case. It only works if the package is installed though, so you can't say "what would give me file X?" like you can with the yum option. – Sirex Jan 23 '13 at 0:56

yum whatprovides /usr/sbin/crond

or just yum provides /usr/sbin/crond

or even yum provides */crond for lazy people (me!)

share|improve this answer

You must log in to answer this question.

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