whois replacement in CentOS 8

Issues related to applications and software problems and general support
Post Reply
michela
Posts: 2
Joined: 2019/09/24 19:50:47

whois replacement in CentOS 8

Post by michela » 2019/09/24 20:02:06

Hi, everyone!

Can anyone here tell me what is to be used in place of whois on CentOS 8? I can not find the package, or anything like it in the repositories (I also tried searching for 'jwhois', among other guesses).

A package for whois was included in CentOS 7, and is still available in Fedora 30.


Thank you!
Michela

mario.dietlein
Posts: 10
Joined: 2019/02/27 13:44:30

Re: whois replacement in CentOS 8

Post by mario.dietlein » 2019/09/27 12:14:47

Try again, i just found the whois package:

Code: Select all

~# yum search whois
=========================================================================
whois.x86_64 : Improved WHOIS client
whois-nls.noarch : Gettext catalogs for whois tools
And i only got the base repos and the epel repo for rhel/centos 8

CucaPeltierda
Posts: 1
Joined: 2019/11/12 06:02:36

Re: whois replacement in CentOS 8

Post by CucaPeltierda » 2019/11/12 06:11:45

Yep, this is in the epel repo for CentOS, which is not installed by default (that may be obvious but as someone who has little time spent in CentOS it was not to me).

To install, you can do the following:

Code: Select all

# Install the epel-release repository
$ sudo dnf install epel-release
# Install the whois package
$ sudo dnf install whois
I found the above information here: https://www.tecmint.com/install-epel-re ... on-centos/

The above article/guide contains more information about the EPEL Repository.

tr3x
Posts: 3
Joined: 2014/07/20 04:00:23

Re: whois replacement in CentOS 8

Post by tr3x » 2020/06/02 19:57:12

now it can't be found even in epel repo!
for what reason it was removed and is there any valid repo for it?

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: whois replacement in CentOS 8

Post by TrevorH » 2020/06/02 21:15:31

It's removed from EPEL because they do not ship packages that are part of RHEL. RHEL 8.2 came out a few weeks ago and now includes whois as a base packages, part of the distro. EPEL then removed their copy as they cannot conflict. Until CentOS 8.2 comes out (it's in progress), you can't install whois. You can use google to search for the EPEL archive and download a copy of the package from there and install it using yum that way.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

tr3x
Posts: 3
Joined: 2014/07/20 04:00:23

Re: whois replacement in CentOS 8

Post by tr3x » 2020/06/03 19:27:31

TrevorH, thanks for the explanation, it was good to know. However the situation itself is funny

desertcat
Posts: 843
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: whois replacement in CentOS 8

Post by desertcat » 2020/06/06 10:50:34

michela wrote:
2019/09/24 20:02:06
Hi, everyone!

Can anyone here tell me what is to be used in place of whois on CentOS 8? I can not find the package, or anything like it in the repositories (I also tried searching for 'jwhois', among other guesses).

A package for whois was included in CentOS 7, and is still available in Fedora 30.


Thank you!
Michela
OK I am confused -- but this is not my first time nor, I suspect, will it my last time:

Can't you simple go to a konsole and type 'whois' ?? Why do you need a "package"? I mean, yeah, I use a GUI for many things, but for relatively simple things, a konsole is far faster and easier. I *must* be missing something.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: whois replacement in CentOS 8

Post by TrevorH » 2020/06/06 12:19:52

You can't run something that isn't installed...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ddjm73
Posts: 13
Joined: 2020/05/19 11:21:30

Re: whois replacement in CentOS 8

Post by ddjm73 » 2020/06/08 06:45:23

Workaround which I use:

whois.sh:

Code: Select all

#! /bin/bash
curl ipinfo.io/$1

Example:

Code: Select all

./whois.sh 8.8.8.8
{
  "ip": "8.8.8.8",
  "hostname": "dns.google",
  "city": "Mountain View",
  "region": "California",
  "country": "US",
  "loc": "37.4056,-122.0775",
  "org": "AS15169 Google LLC",
  "postal": "94043",
  "timezone": "America/Los_Angeles",
  "readme": "https://ipinfo.io/missingauth"

It should be relatively easy to extract the desired information from that output via "grep" and other commands, even though the output format is slightly different from a proper "whois" client.

Post Reply