...I can find command nslookup...
I'm used it so many in many distros that I'm shocked that there is no in #!
bash: nslookup: command not found
So my questions are:
1. How can I install it in #!?
2. Which are alternatives?
Last edited by Unngenant (2012-07-24 14:05:46)
sudo apt-get install dnsutils
I found this using "apt-file search" -- if you don't have this yet you should get it:
sudo apt-get install apt-file
then whenever you want to see what package a command or library is in, just use (for example)
apt-file search nslookup
You can also search for packages on packages.debian.org:
Last edited by pidsley (2012-07-24 14:05:02)
Thank you pidsley!!!
You're welcome. Mark it [solved] if you're happy (edit the tile of your first post).
There is no need for the package apt-file ... apt comes with it's own command for searching ...
> apt-cache search nslookup
dnsutils - Mit BIND zur Verfügung gestellte Clients
libnet-nslookup-perl - simple DNS lookup module for perl
There is no need for the package apt-file ...
In this particular instance, perhaps. But there are times when apt-file can find things apt-cache cannot:
~ $ apt-cache search Xinerama.h ~ $ apt-file search Xinerama.h fvwm: /usr/share/doc/fvwm/html/commands/Xinerama.html libghc-x11-dev: /usr/lib/haskell-packages/ghc/lib/X11-22.214.171.124/ghc-7.0.4/Graphics/X11/Xinerama.hi libghc-x11-doc: /usr/share/doc/libghc-x11-doc/html/Graphics-X11-Xinerama.html libghc-x11-doc: /usr/share/doc/libghc-x11-doc/html/mini_Graphics-X11-Xinerama.html libghc-x11-doc: /usr/share/doc/libghc-x11-doc/html/src/Graphics-X11-Xinerama.html libxinerama-dev: /usr/include/X11/extensions/Xinerama.h
And other times where apt-file returns more useful information:
~ $ apt-cache search inxi inxi - System info script for irc (forked from infobash by locsmith) ~ $ apt-file search inxi calibre: /usr/lib/calibre/calibre/gui2/store/stores/xinxii_plugin.py python-spyderlib: /usr/lib/python2.6/dist-packages/spyderlib/utils/sphinxify.py python-spyderlib: /usr/lib/python2.7/dist-packages/spyderlib/utils/sphinxify.py python-spyderlib: /usr/share/pyshared/spyderlib/utils/sphinxify.py quassel-data-kde4: /usr/share/kde4/apps/quassel/scripts/inxi
Last edited by pidsley (2012-07-24 16:53:55)
That's correct, pidsley, but for the price of a cache, wasting space ... and time.
> search Xinerama.h
E: The cache is empty. You need to run 'apt-file update' first.
> man apt-file
update Resynchronize the package contents from their sources. The lists
of the contents of packages are fetched from the location(s)
specified in /etc/apt/sources.list. This command attempts to
fetch the Contents-<ARCH>.gz files from remote sources. For
downloading these uses either the curl or wget commands as spec‐
ified in apt-file.conf.
But for the price of a cache, I can find libraries I need when I'm building. Small price to me.
Agree to disagree, OK?
I have to side with pidsley here. On Arch, we also have no file search embedded into the package manager. It is a seperate tool called pkgfile, you can feed it with a file name or a complete file path. Absolutely useful, when there is some broken lib.so.0.foo.bar you need to find, without playing the guessing game with the name. It doesn't search the sources, though.
I'm so meta, even this acronym