LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum search file (https://www.linuxquestions.org/questions/linux-newbie-8/yum-search-file-781427/)

vinaytp 01-11-2010 05:10 AM

yum search file
 
Hi all..

while installing openmotif i got following error..
Code:

X11/extensions/Print.h: No such file or directory
I have local fedora11 yum repository configured...How can i search for file name Print.h in repository, If I can find the pacakge containing Print.h file I can install the package.

Code:

yum search Print.h
only search's for Packages...Is there any way to search for file Print.h in the whole repositary...

Thanks in advance..

colucix 01-11-2010 05:49 AM

You can try this one:
Code:

yum whatprovides "*/Print.h"

anand.arumug 01-12-2010 08:14 AM

Quote:

Originally Posted by vinaytp (Post 3822240)
Hi all..

while installing openmotif i got following error..
Code:

X11/extensions/Print.h: No such file or directory
I have local fedora11 yum repository configured...How can i search for file name Print.h in repository, If I can find the pacakge containing Print.h file I can install the package.

Code:

yum search Print.h
only search's for Packages...Is there any way to search for file Print.h in the whole repositary...

Thanks in advance..

To search for files, I would suggest do the following:

Open a command window and execute the following:

Code:

updatedb
once the above command is complete, try this:

Code:

locate print.h
hope this helps.

vinaytp 01-12-2010 08:38 AM

Quote:

Originally Posted by anand.arumug (Post 3823686)
To search for files, I would suggest do the following:

Open a command window and execute the following:

Code:

updatedb
once the above command is complete, try this:

Code:

locate print.h
hope this helps.

Dear anand.arumug...

Thanks for your reply...I am trying to search in my Fedora locally created repositary..

Thanks colucix..

Code:

yum whatprovides "*/Print.h"
will works fine..

updatedb will update the mlocate.db database and

locate print.h

will not search for files in locally created Fedora11 repositary, it will search for the file in updated mlocate.db cache...

Thanks...


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