LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-02-2006, 11:07 PM   #1
justmehere
Member
 
Registered: Jul 2005
Distribution: Mandrake 6.1
Posts: 59

Rep: Reputation: 15
looking for a rpm help


can anyone tell me what rpm command will tell you which package contains a particular file ?

so I have a file name which may or not be part of the distro but want to check if its part of the distro or not.Is it possible to do this ?

thanks

Last edited by justmehere; 07-02-2006 at 11:13 PM.
 
Old 07-02-2006, 11:21 PM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 774
Blog Entries: 6

Rep: Reputation: 75
rpm -ql -p filename.rpm

i think this is what u want


and this is usefull web interface for some rpm lib/file finder

http://search.rpmseek.com/search.html

Last edited by routers; 07-02-2006 at 11:58 PM.
 
Old 07-03-2006, 02:12 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
clearly nothing to do with networking - moved to a suitable forum.
 
Old 07-03-2006, 03:06 AM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 49
Quote:
Originally Posted by justmehere
can anyone tell me what rpm command will tell you which package contains a particular file ?

so I have a file name which may or not be part of the distro but want to check if its part of the distro or not.Is it possible to do this ?

thanks
Code:
rpm -qf /path/to/file
 
Old 07-03-2006, 10:30 AM   #5
justmehere
Member
 
Registered: Jul 2005
Distribution: Mandrake 6.1
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie
clearly nothing to do with networking - moved to a suitable forum.

I thought this was a forum for Newbies ?
 
Old 07-03-2006, 10:53 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by justmehere
I thought this was a forum for Newbies ?
yes, the forum that i moved it to before you read it is for newbies. that's why i moved it here.
 
Old 07-03-2006, 11:01 AM   #7
justmehere
Member
 
Registered: Jul 2005
Distribution: Mandrake 6.1
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by routers
rpm -ql -p filename.rpm

i think this is what u want


and this is usefull web interface for some rpm lib/file finder

http://search.rpmseek.com/search.html
hey routers i gave the command a go but I get an error "open of filename.rpm failed: No such file or directory" (of course replacing filename with actual name of the file)

I didn't notice the CDROM light flashing that RPM was searching the RPM packages located in the CDROM drive ?
 
Old 07-03-2006, 11:07 AM   #8
justmehere
Member
 
Registered: Jul 2005
Distribution: Mandrake 6.1
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by spooon
Code:
rpm -qf /path/to/file
thanks spoon the thing is I don't know the file path but rather want to determine if this file is part of not installed packages located on the CDROM.
 
  


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
counter part of "rpm -ivh --force kernel....rpm in slackware b0nd Slackware 2 01-28-2006 08:46 PM
rpm -Uvh does not work with header & rpm files in /var/spool/up2date jd_no7 Linux - Software 1 05-17-2004 06:24 PM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 10:22 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 08:19 AM
Suggestions requested on upgrading a stock RH rpm with a third-party rpm obarney Linux - Software 5 05-21-2003 06:07 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration