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 05-05-2009, 12:50 PM   #1
neoform
Member
 
Registered: Apr 2009
Posts: 41

Rep: Reputation: 15
-bash: whois: command not found


I'm trying to do a whois lookup, but I get hit with this error:

-bash: whois: command not found

Where can I get a new copy of whois (for centos)?

# locate whois
/usr/libexec/webmin/bind8/whois-servers
/usr/libexec/webmin/bind8/whois.cgi
/usr/libexec/webmin/bind8/images/whois.gif
/usr/libexec/webmin/blue-theme/bind8/images/whois.gif
 
Old 05-05-2009, 12:59 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by neoform View Post
I'm trying to do a whois lookup, but I get hit with this error:

-bash: whois: command not found

Where can I get a new copy of whois (for centos)?

# locate whois
/usr/libexec/webmin/bind8/whois-servers
/usr/libexec/webmin/bind8/whois.cgi
/usr/libexec/webmin/bind8/images/whois.gif
/usr/libexec/webmin/blue-theme/bind8/images/whois.gif
It's in a package called (surprise, surprise ) whois.
Just install that package.
cheers,
jdk
 
Old 05-05-2009, 01:00 PM   #3
neoform
Member
 
Registered: Apr 2009
Posts: 41

Original Poster
Rep: Reputation: 15
# yum install whois
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* rpmforge: apt.sw.be
Setting up Install Process
Parsing package install arguments
No package whois available.
Nothing to do

 
Old 05-05-2009, 01:03 PM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by neoform View Post
# yum install whois
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* rpmforge: apt.sw.be
Setting up Install Process
Parsing package install arguments
No package whois available.
Nothing to do

It's called "whois" in debian-based distros. I don't know what it's called in centos or else you don't have the correct repos in your sources.list. Do a google for centos who is and you should find it easily enough.
Ciao,
jdk
 
Old 05-05-2009, 01:29 PM   #5
neoform
Member
 
Registered: Apr 2009
Posts: 41

Original Poster
Rep: Reputation: 15
Finding the package it's in is not easy, I haven't had any luck on google..
 
Old 05-05-2009, 01:41 PM   #6
ECRocker
Member
 
Registered: May 2007
Distribution: RHEL 5, Ubuntu 9.10, Fedora 12
Posts: 85

Rep: Reputation: 17
What about jwhois for centos?
 
Old 05-05-2009, 01:43 PM   #7
neoform
Member
 
Registered: Apr 2009
Posts: 41

Original Poster
Rep: Reputation: 15
I noticed that as an option to install, is that just a clone of whois?
 
Old 05-05-2009, 01:51 PM   #8
ECRocker
Member
 
Registered: May 2007
Distribution: RHEL 5, Ubuntu 9.10, Fedora 12
Posts: 85

Rep: Reputation: 17
The only Centos servers I have are in production, or else I'd test it.
http://www.gnu.org/software/jwhois/
http://linux.about.com/library/cmd/blcmdl1_jwhois.htm

jwhois - client for the whois service
SYNOPSIS
jwhois [ OPTIONS ]... [ QUERY ]
DESCRIPTION
jwhois searches Whois servers for the object on the command line.

The host to query is taken from a global configuration file, a configuration file specified on the command line, or selected directly on the command line.

Looks like it...
 
Old 05-05-2009, 02:16 PM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,549
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

From the console as root what do you see with 'which whois'? As your user if not in your path; '/usr/bin/whois'?
 
Old 05-05-2009, 02:19 PM   #10
neoform
Member
 
Registered: Apr 2009
Posts: 41

Original Poster
Rep: Reputation: 15
[root@xxx sysconfig]# which whois
/usr/bin/which: no whois in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
 
Old 05-05-2009, 03:16 PM   #11
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Rep: Reputation: 38
Quote:
Originally Posted by neoform View Post
I noticed that as an option to install, is that just a clone of whois?
jwhois is a clone/adaptation of whois. Should be just fine.

Actually, I've run into a number of packages that happen to be clones of originally named packages. And what the distributors do is link the original name (i.e. whois) to the actual binary (i.e. jwhois).
 
Old 06-08-2012, 12:26 AM   #12
huybac.nguyen
LQ Newbie
 
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
[root@localhost /]# yum install jwhois
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
..........
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package jwhois.i686 0:4.0-19.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================== ==========================================
Package Arch Version Repository Size
==================================================================================================== ==========================================
Installing:
jwhois i686 4.0-19.el6 base 103 k

...........
Package: centos-release-6-2.el6.centos.7.i686 (@anaconda-CentOS-201112130233.i386/6.2)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : jwhois-4.0-19.el6.i686 1/1

Installed:
jwhois.i686 0:4.0-19.el6

Complete!
[root@localhost /]#
 
  


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
bash: command not found hamish Linux - Newbie 7 02-23-2011 05:28 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-28-2006 12:57 AM
bash: command not found intels_ss Linux - Newbie 5 07-20-2005 08:41 PM
whois - command not found foxxer Mandriva 5 05-28-2005 03:31 PM
whois command not found? wtf? Smokey Slackware 4 09-19-2004 09:14 AM


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