LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-11-2010, 05:10 AM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
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..

Last edited by vinaytp; 01-11-2010 at 05:20 AM.
 
Old 01-11-2010, 05:49 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,453

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
You can try this one:
Code:
yum whatprovides "*/Print.h"
 
1 members found this post helpful.
Old 01-12-2010, 08:14 AM   #3
anand.arumug
Member
 
Registered: Oct 2009
Location: Dayton, Ohio
Distribution: ubuntu, centos
Posts: 68
Blog Entries: 2

Rep: Reputation: 16
Quote:
Originally Posted by vinaytp View Post
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.
 
Old 01-12-2010, 08:38 AM   #4
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by anand.arumug View Post
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...

Last edited by vinaytp; 01-12-2010 at 08:40 AM.
 
  


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
How to search "file:///" in internet search engines? tirengarfio General 4 05-23-2009 07:56 PM
yum search tomcat foampile Linux - Server 9 02-20-2009 03:25 PM
yum config error parsing file failed - yum won't run emuub Linux - Software 9 11-04-2008 05:48 AM
configuring yum to search in cd-rom ShanxT Fedora 2 04-12-2007 12:13 AM
How to 'apt-cache search' & 'apt-file search' by distribution? davidas Debian 3 04-19-2004 01:56 PM


All times are GMT -5. The time now is 09:10 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