# 使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, winget 安装 whois

查看 whois 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:whois
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install whois
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install whois
```

  证据: MacPorts ports tree: net/whois/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add whois
```

  证据: Alpine Linux edge package indexes: whois from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install whois
```

  证据: Debian stable package indexes: whois from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install whois
```

  证据: Fedora Rawhide package metadata: whois from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#whois
```

  证据: nixpkgs package indexes: pkgs/by-name/wh/whois/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S whois
```

  证据: Arch Linux sync databases: whois from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install whois
```

  证据: openSUSE Tumbleweed package metadata: whois from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install whois
```

  证据: Chocolatey community package catalog: whois from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','westwindwebsurge'

- winget (92%):

```sh
winget install --id Microsoft.Sysinternals.Whois -e
```

  证据: Windows Package Manager source index: Microsoft.Sysinternals.Whois from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:whois
- **软件包管理器:** Homebrew
- **版本:** 5.6.6
- **来源摘要:** Lookup tool for domain names and other internet resources
- **主页:** <https://github.com/rfc1036/whois>
- **仓库:** <https://github.com/rfc1036/whois>
- **最后更新:** 2026-06-15T19:20:19Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- whois (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.6.6
## 项目历史与用法

whois is Marco d'Itri's intelligent WHOIS command-line client. It wraps one of the Internet's oldest registry lookup protocols in a practical Unix tool that automatically chooses likely registry servers for domains, IP allocations, AS numbers, and related resources.

### 项目历史

The WHOIS protocol predates the modern commercial Internet. RFC 812 described NICNAME/WHOIS in 1982 as an ARPANET directory service running at the Network Information Center at SRI International; RFC 954 updated the official NICNAME/WHOIS specification in 1985; RFC 3912 replaced those earlier RFCs in September 2004 with the current WHOIS protocol specification.

Marco d'Itri's client has its own narrower software history. The README says he wrote this Whois client from scratch in 1999 because alternatives were obsolete or bloated. The client is described as intelligent because it automatically selects the appropriate WHOIS server for most queries, with an internal database that is often more accurate than IANA's published data.

The rfc1036/whois GitHub repository was created on March 31, 2013, but the canonical release distribution remains Debian's source pool. The README also explains the historically odd inclusion of `mkpasswd`, a password-hash helper inherited from the original RIPE whois package lineage.

### 采用历史

WHOIS became a default operational lookup mechanism for domain registrations, IP network assignments, autonomous system numbers, and registry contacts. IANA's WHOIS service still exposes a port 43 service and accepts domain names, IP addresses, and AS numbers, while ICANN operates a registration-data lookup service for public domain and Internet number resource data.

The rfc1036 client became especially visible through Debian and derivative distributions. Debian describes the package as an intelligent WHOIS client for RFC 3912 queries, and package indexes across Unix-like systems package the same code because it solves the mundane but persistent problem of knowing which registry server to ask.

WHOIS has also acquired historical baggage: free-form text responses, inconsistent formats, privacy restrictions, and the later emergence of RDAP as a more structured successor. That context makes the command-line client useful but also explains why serious automation often needs registry-specific parsing or newer protocols.

### 使用方式

Typical usage is a direct terminal lookup such as `whois example.com`, an IP address, an AS number, or a registry handle. The client chooses a server, sends a simple text query over the WHOIS protocol, and prints the human-readable registry response.

Network operators, security researchers, abuse desks, domain buyers, and developers use `whois` for quick ownership, delegation, registrar, nameserver, allocation, and contact clues. The result is intentionally close to the registry's original text output, which is convenient for humans but uneven for scripts.

### 为什么软件包爱好者会关心

whois is package-nerd infrastructure in the oldest sense: a small command that turns Internet registry bureaucracy into a shell query. It is the kind of tool that persists because every generation of network debugging still needs to ask who owns a name, address block, or ASN.

The rfc1036 implementation is notable because it adds registry-selection intelligence to an intentionally minimal protocol. The package also carries the strange Unix fossil `mkpasswd`, a reminder that package histories often preserve useful leftovers from older network-operations toolchains.

### 时间线

- 1982: RFC 812 described NICNAME/WHOIS for ARPANET directory lookups.
- 1985: RFC 954 updated NICNAME/WHOIS and became the official protocol specification.
- 1999: Marco d'Itri wrote a new Whois client from scratch because alternatives were obsolete or bloated.
- 2004-09: RFC 3912 standardized the current WHOIS protocol specification and obsoleted RFC 954 and RFC 812.
- 2013-03-31: The rfc1036/whois GitHub repository was created.
- 2026-07-02: The project remained packaged across Unix-like package ecosystems and maintained as Debian-oriented source.

### Related projects

- IANA WHOIS is a central referral-style WHOIS service for domains, IP addresses, and AS numbers.
- ICANN Lookup is a web-facing registration data lookup service.
- RDAP is the structured, HTTP-based successor protocol often discussed as a replacement for free-form WHOIS responses.
- RIPE whois is part of the older client lineage referenced by the package's `mkpasswd` history.

### 来源

- Debian package description: https://packages.debian.org/sid/whois
- Debian package tracker: https://tracker.debian.org/whois
- IANA WHOIS service: https://www.iana.org/whois
- ICANN WHOIS/RDDS page: https://www.icann.org/resources/pages/whois-rdds-2023-11-02-en
- RFC 3912 WHOIS Protocol Specification: https://datatracker.ietf.org/doc/rfc3912/
- RFC 812 NICNAME/WHOIS: https://www.rfc-editor.org/info/rfc812
- RFC 954 NICNAME/WHOIS: https://www.rfc-editor.org/info/rfc954
- rfc1036/whois GitHub API metadata: https://api.github.com/repos/rfc1036/whois
- rfc1036/whois repository and README: https://github.com/rfc1036/whois


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - whois - 5.6.3: normalized package name match | Debian stable package indexes: whois from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | intelligent WHOIS client
- Nix - whois: normalized package name match | nixpkgs package indexes: pkgs/by-name/wh/whois/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - whois - 5.5.22: normalized package name match | Ubuntu 24.04 LTS package indexes: whois from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | intelligent WHOIS client
- apk - mkpasswd - 5.6.6-r0: normalized package name match | Alpine Linux edge package indexes: mkpasswd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | mkpasswd with configurable number of rounds | https://github.com/rfc1036/whois
- apk - whois - 5.6.6-r0: normalized package name match | Alpine Linux edge package indexes: whois from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Intelligent WHOIS client by Marco d'Itri | https://github.com/rfc1036/whois
- apk - whois-doc - 5.6.6-r0: normalized package name match | Alpine Linux edge package indexes: whois-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Intelligent WHOIS client by Marco d'Itri (documentation) | https://github.com/rfc1036/whois
- dnf - mkpasswd - 5.6.6-2.fc45: normalized package name match | Fedora Rawhide package metadata: mkpasswd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Encrypt a password with crypt(3) function using a salt | https://www.linux.it/~md/software/
- dnf - whois - 5.6.6-2.fc45: normalized package name match | Fedora Rawhide package metadata: whois from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Improved WHOIS client | https://www.linux.it/~md/software/
- dnf - whois-nls - 5.6.6-2.fc45: normalized package name match | Fedora Rawhide package metadata: whois-nls from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Gettext catalogs for whois tools | https://www.linux.it/~md/software/
- pacman - whois - 5.6.6-1: normalized package name match | Arch Linux sync databases: whois from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Intelligent WHOIS client | https://github.com/rfc1036/whois
- zypper - whois - 5.6.6-1.5: normalized package name match | openSUSE Tumbleweed package metadata: whois from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Intelligent WHOIS client | https://github.com/rfc1036/whois
- zypper - whois-bash-completion - 5.6.6-1.5: normalized package name match | openSUSE Tumbleweed package metadata: whois-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash completion for whois | https://github.com/rfc1036/whois
- MacPorts - whois: normalized package name match | MacPorts ports tree: net/whois/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - whois: normalized package name match | Chocolatey community package catalog: whois from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','westwindwebsurge'
- winget - Microsoft.Sysinternals.Whois: normalized package name match | Windows Package Manager source index: Microsoft.Sysinternals.Whois from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/whois.yml](https://github.com/mxcl/pkgdb/blob/main/combined/whois.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
