View previous topic :: View next topic |
Author |
Message |
bombcar Guru
Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Mon Feb 23, 2004 10:13 pm Post subject: what ebuild provides dig or nslookup |
|
|
I can't seem to find it. I wish there was an emerge -S "command provided" option. |
|
Back to top |
|
|
Gruffi Apprentice
Joined: 15 Aug 2003 Posts: 209 Location: Antwerpen - Flanders - Belgium
|
Posted: Mon Feb 23, 2004 10:19 pm Post subject: |
|
|
Code: | kai7up root # emerge -s bind-tools
Searching...
[ Results for search key : bind-tools ]
[ Applications found : 1 ]
* net-dns/bind-tools
Latest version available: 9.2.2
Latest version installed: 9.2.2
Size of downloaded files: 4,951 kB
Homepage: http://www.isc.org/products/BIND/bind9-beta.html
Description: bind tools: dig, nslookup, and host
License: as-is
|
_________________ ... and we will show Microsoft, that they cannot take whatever they want. And that Free Software is our software! |
|
Back to top |
|
|
fcgreg Apprentice
Joined: 17 May 2003 Posts: 264 Location: California, USA
|
Posted: Mon Feb 23, 2004 10:20 pm Post subject: This one eludes many :-) |
|
|
You can find it in Portage under the name "bind-tools" (net-dns/bind-tools). It includes dig, nslookup, and host.
Happy Gentoo-ing! _________________ Greg T. |
|
Back to top |
|
|
Gruffi Apprentice
Joined: 15 Aug 2003 Posts: 209 Location: Antwerpen - Flanders - Belgium
|
Posted: Mon Feb 23, 2004 10:32 pm Post subject: |
|
|
actually i should have posted this code:
Code: | kai7up root # emerge -S nslookup
Searching...
[ Results for search key : nslookup ]
[ Applications found : 1 ]
* net-dns/bind-tools
Latest version available: 9.2.2
Latest version installed: 9.2.2
Size of downloaded files: 4,951 kB
Homepage: http://www.isc.org/products/BIND/bind9-beta.html
Description: bind tools: dig, nslookup, and host
License: as-is |
_________________ ... and we will show Microsoft, that they cannot take whatever they want. And that Free Software is our software! |
|
Back to top |
|
|
bombcar Guru
Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Mon Feb 23, 2004 10:36 pm Post subject: |
|
|
Thank you! I tried bindutils, but obviously I was off a bit. |
|
Back to top |
|
|
jtaylor72 Apprentice
Joined: 01 Feb 2004 Posts: 197 Location: "the can", WA
|
Posted: Wed Feb 25, 2004 2:01 am Post subject: |
|
|
Baron FrostFire wrote: | actually i should have posted this code:
Code: | kai7up root # emerge -S nslookup
Searching...
[ Results for search key : nslookup ]
[ Applications found : 1 ]
* net-dns/bind-tools
Latest version available: 9.2.2
Latest version installed: 9.2.2
Size of downloaded files: 4,951 kB
Homepage: http://www.isc.org/products/BIND/bind9-beta.html
Description: bind tools: dig, nslookup, and host
License: as-is |
|
How did you get your search to do this? When I searched for nslookup, it returned 0 results. |
|
Back to top |
|
|
ledskof Apprentice
Joined: 22 Oct 2002 Posts: 209
|
Posted: Wed Feb 25, 2004 2:24 am Post subject: |
|
|
If you look really close, you'll see that he used a capital 'S', which is the same as doing: Code: | fireskof root # emerge --searchdesc nslookup
Searching...
[ Results for search key : nslookup ]
[ Applications found : 1 ]
* net-dns/bind-tools
Latest version available: 9.2.2
Latest version installed: 9.2.2
Size of downloaded files: 4,951 kB
Homepage: http://www.isc.org/products/BIND/bind9-beta.html
Description: bind tools: dig, nslookup, and host
License: as-is |
Here's the info on it:
Code: | --searchdesc (-S)
Matches the search string against the description field as well
as the package name. Take caution as the descriptions are also
matched as regular expressions. |
|
|
Back to top |
|
|
bombcar Guru
Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Wed Feb 25, 2004 9:20 pm Post subject: Sounds good |
|
|
Looks close to what I want, but I'd still like an exact list of each command provided by an ebuild; for example, netatalk provides a bunch of little commands that are hard to find unless you know they came from netatalk. |
|
Back to top |
|
|
ledskof Apprentice
Joined: 22 Oct 2002 Posts: 209
|
Posted: Wed Feb 25, 2004 9:33 pm Post subject: |
|
|
That's a little extreme don't you think?
Do you just want the executable binaries or every file it installs?
That would quite inflate the size of the portage tree. Imagine all the files just for something like xfree. Even if you only include binaries. It would also create a lot of unncessary portage maintenance everytime packages change their binaries. It would be difficult to write a script to search through the packages to determine that type of thing...
Otherwise, if you emerge the gentoolkit, and if you have the package installed already, you could either do Code: | etcat -f bind-tools | or |
|
Back to top |
|
|
sevec n00b
Joined: 02 Jan 2004 Posts: 47
|
Posted: Wed Feb 25, 2004 9:39 pm Post subject: |
|
|
yes.. sometimes i too wished there was a field in the ebuild besides the description for the commands it provides and maybe also the shared libraries.
it might be nice to have but i don't know how usefull it would be. |
|
Back to top |
|
|
bombcar Guru
Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Wed Feb 25, 2004 10:37 pm Post subject: |
|
|
I don't think it would be all that hard; after the "work" directory is used but pre installation of the files, a simple find command would find all the executable.
RPMs provide "--whatprovides" and similar options. I think it would be very useful, at least when I want to run a command, but don't know where it comes from.
Dumb luck saves me most of the time, if I want to run emacs, I can just and find that that's what I want.
Sometimes I have to use emerge -s, but I'd really like to be able to find some of the obscure commands. |
|
Back to top |
|
|
|