Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

Your Answer

 
discard

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.