LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   looking for a rpm help (https://www.linuxquestions.org/questions/linux-newbie-8/looking-for-a-rpm-help-460440/)

justmehere 07-02-2006 10:07 PM

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

routers 07-02-2006 10:21 PM

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

acid_kewpie 07-03-2006 01:12 AM

clearly nothing to do with networking - moved to a suitable forum.

spooon 07-03-2006 02:06 AM

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

justmehere 07-03-2006 09:30 AM

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 ?

acid_kewpie 07-03-2006 09:53 AM

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. ;)

justmehere 07-03-2006 10:01 AM

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 ?

justmehere 07-03-2006 10:07 AM

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.


All times are GMT -5. The time now is 03:33 AM.