LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem - how to find package if you only know specific command? (https://www.linuxquestions.org/questions/linux-newbie-8/problem-how-to-find-package-if-you-only-know-specific-command-745284/)

markomarko 08-05-2009 08:40 AM

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!

vonbiber 08-05-2009 08:56 AM

Quote:

Originally Posted by markomarko (Post 3632250)
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

knudfl 08-05-2009 09:44 AM

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.

.....

knudfl 08-05-2009 02:21 PM

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"

.....


All times are GMT -5. The time now is 03:27 PM.