SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-07-24 13:58:18

Unngenant
Member
Registered: 2012-05-30
Posts: 12

[SOLVED]Am I crazy or what...

...I can find command nslookup...

I'm used it so many in many distros that I'm shocked that there is no in #!  lol

marko@crunchbang:~$ nslookup
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)

Offline

Be excellent to each other!

#2 2012-07-24 14:01:08

pidsley
#! Die Hard
Registered: 2012-05-23
Posts: 1,348

Re: [SOLVED]Am I crazy or what...

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:

http://packages.debian.org/search?searc … e&arch=any

Last edited by pidsley (2012-07-24 14:05:02)

Offline

#3 2012-07-24 14:04:47

Unngenant
Member
Registered: 2012-05-30
Posts: 12

Re: [SOLVED]Am I crazy or what...

Thank you pidsley!!!

Offline

#4 2012-07-24 14:05:38

pidsley
#! Die Hard
Registered: 2012-05-23
Posts: 1,348

Re: [SOLVED]Am I crazy or what...

You're welcome. Mark it [solved] if you're happy (edit the tile of your first post).

Offline

#5 2012-07-24 15:11:41

skbierm
#! Member
From: Germany
Registered: 2012-07-17
Posts: 76
Website

Re: [SOLVED]Am I crazy or what...

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

Offline

#6 2012-07-24 16:48:17

pidsley
#! Die Hard
Registered: 2012-05-23
Posts: 1,348

Re: [SOLVED]Am I crazy or what...

skbierm wrote:

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-1.5.0.0/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)

Offline

#7 2012-07-24 16:59:57

skbierm
#! Member
From: Germany
Registered: 2012-07-17
Posts: 76
Website

Re: [SOLVED]Am I crazy or what...

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.
...

Offline

#8 2012-07-24 17:03:33

pidsley
#! Die Hard
Registered: 2012-05-23
Posts: 1,348

Re: [SOLVED]Am I crazy or what...

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?

Offline

#9 2012-07-24 21:45:30

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: [SOLVED]Am I crazy or what...

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

Offline

#10 2012-07-25 03:35:29

johnraff
#!Drunkard
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 2,462
Website

Re: [SOLVED]Am I crazy or what...

If you don't want the cache, just search the Debian packages site pidsley linked to.


John
--------------------
( a boring Japan blog , and idle twitterings )

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo