LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to find corresponding rpm package (https://www.linuxquestions.org/questions/linux-software-2/how-to-find-corresponding-rpm-package-342967/)

stewchcken 07-13-2005 08:23 PM

How to find corresponding rpm package
 
If I know service or software already, How I know which rpm package contains it?
For example inetd belongs to the netkit-base***rpm
xinetd belongs to xinetd***rp

randyding 07-13-2005 08:40 PM

Code:

$ rpm -qf /usr/sbin/xinetd
xinetd-2.3.13-4


stewchcken 07-13-2005 09:41 PM

Thanks alot for your hints
but if my /etc/init.d/xinetd file even doesnot exist.
How do I find corrpesonding rpm package?

randyding 07-13-2005 11:50 PM

Here's a few more commands.
Code:

# find the exact name of the xinetd package
$ rpm -qa | grep xinetd
xinetd-2.3.13-4

# note the following is verify, if it returns nothing then
# it verifyied ok, if it prints an error then a file may have been deleted
$ rpm -V xinetd-2.3.13-4

# list the contents of the package
$ rpm -ql xinetd-2.3.13-4
/etc/rc.d/init.d/xinetd
... rest of the listing not shown ...

So the file /etc/rc.d/init.d/xinetd is the file from the package that somehow was deleted on your system?


All times are GMT -5. The time now is 12:12 PM.