LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 11:50 AM   #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, 11:59 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

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, 12: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, 12:03 PM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

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, 12: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, 12: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, 12: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, 12: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, 01:16 PM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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, 01: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, 02:16 PM   #11
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
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-07-2012, 11:26 PM   #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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:21 AM.

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
Open Source Consulting | Domain Registration