LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-13-2005, 08:23 PM   #1
stewchcken
LQ Newbie
 
Registered: Jun 2005
Posts: 18

Rep: Reputation: 0
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
 
Old 07-13-2005, 08:40 PM   #2
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
Code:
$ rpm -qf /usr/sbin/xinetd
xinetd-2.3.13-4
 
Old 07-13-2005, 09:41 PM   #3
stewchcken
LQ Newbie
 
Registered: Jun 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks alot for your hints
but if my /etc/init.d/xinetd file even doesnot exist.
How do I find corrpesonding rpm package?
 
Old 07-13-2005, 11:50 PM   #4
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a package so rpm can find it dangerousdave Linux - Newbie 2 02-22-2005 11:39 AM
How to Find the Compile Time Options of a RPM Package spurgeonb Red Hat 0 11-13-2004 11:00 PM
how to find all files and programs in a package (RPM) 1kyle Linux - Software 1 07-13-2004 04:16 AM
Java can't find package, but PATH set correctly (j2se1.4.0, java.util.regex package) Ethan Programming 5 02-06-2004 09:55 PM
can reinstall the rpm package without delete the rpm package eye Red Hat 1 10-20-2003 07:53 AM


All times are GMT -5. The time now is 07:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration