LinuxQuestions.org
Review your favorite Linux distribution.
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 08-05-2009, 09:40 AM   #1
markomarko
Member
 
Registered: Nov 2006
Location: Belgrade, Serbia
Distribution: Slackware
Posts: 69

Rep: Reputation: 19
Unhappy problem - how to find package if you only know specific command?


i want to find which package for slackware (and if there's not any, then source) contains gcc-config command. how can i do that?
i presume that the procedure would be same if some other time would like to find some other package/command?

tia!
 
Old 08-05-2009, 09:56 AM   #2
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 420

Rep: Reputation: 86
Quote:
Originally Posted by markomarko View Post
i want to find which package for slackware (and if there's not any, then source) contains gcc-config command. how can i do that?
i presume that the procedure would be same if some other time would like to find some other package/command?

tia!
slackware keeps a log of installed packages in
/var/log/packages

so if you're looking for a package that contains 'gcc-config'
you could do a grep

grep 'gcc\-config' /var/log/packages/*

to have some details

grep -l 'gcc\-config' /var/log/packages/*

to display only the name of the package(s) where this string
is found
 
Old 08-05-2009, 10:44 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Two ways, I use :

Google .. file rpm ..
And you will often see hits from rpm.pbone
http://rpm.pbone.net/
which is also searching on package content.
Or use the "Advanced Search" on the site.

Or use a random site for Debian packages :
Search > > "package content"
http://packages.debian.org/stable/devel/gcc
And all pages have a link to the sources.
.....
... except that your example 'gcc-config' gives no answer.

.....

Last edited by knudfl; 08-05-2009 at 02:52 PM.
 
Old 08-05-2009, 03:21 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Never heard about it before :
There is actually a utility by name 'gcc-config'

Google > Advanced Search : "gcc-config"
http://www.google.com/search?hl=en&a...i=&safe=images

http://packages.gentoo.org/package/sys-devel/gcc-config

http://sources.gentoo.org/viewcvs.py...ld?view=markup
DESCRIPTION="Utility to change the gcc compiler being used"

.....
 
  


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 find out if you have a specific package installed? AriciU Slackware 2 07-08-2007 11:58 PM
du on specific files from find command (use xargs?) fireman949 Linux - Software 2 07-10-2005 02:42 AM
Command line tools to Find files with specific text naps Linux - Software 5 11-15-2004 05:46 AM
Command to find out which package contains which file ? javeree Slackware 6 07-10-2004 07:35 PM
How do I find out what package a given command comes from? WeNdeL Linux - Newbie 2 05-19-2003 10:11 AM


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