← 返回命令列表

Linux command

whohas 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Search for a package

whohas [package_name]

Restrict the search

whohas -d [debian,ubuntu,arch] [package_name]

Match the package name exactly

whohas --strict [package_name]

Speed up the search

whohas --shallow [package_name]

Disable multi-threaded

whohas --no-threads [package_name]

说明

whohas is a command-line tool that queries package lists from many Linux and BSD distributions in parallel and prints the results in a uniform format. It is intended to make it easy to discover which distributions ship a given package, at what version, and how big it is, without visiting each distribution's website. Supported distributions include Arch Linux, Debian, Fedora, Gentoo, Mageia, Mandriva, openSUSE, Slackware, Source Mage, Ubuntu, FreeBSD, NetBSD, OpenBSD, Fink, MacPorts, and Cygwin. By default each repository is queried concurrently to keep latency low; the --no-threads option falls back to sequential lookups when this is undesirable.

参数

--no-threads
Disable multi-threaded queries (slower but easier to debug or rate-limit).
--shallow
Limit to one call per server. Faster, but loses some information such as package size and release date.
--strict
List only packages whose name exactly matches _pkgname_.
-d _DIST_,_DIST_...
Restrict queries to the given distributions. Accepted values include _archlinux_, _debian_, _ubuntu_, _fedora_, _opensuse_, _gentoo_, _mageia_, _mandriva_, _slackware_, _sourcemage_, _freebsd_, _netbsd_, _openbsd_, _fink_, _macports_, _cygwin_.

FAQ

What is the whohas command used for?

whohas is a command-line tool that queries package lists from many Linux and BSD distributions in parallel and prints the results in a uniform format. It is intended to make it easy to discover which distributions ship a given package, at what version, and how big it is, without visiting each distribution's website. Supported distributions include Arch Linux, Debian, Fedora, Gentoo, Mageia, Mandriva, openSUSE, Slackware, Source Mage, Ubuntu, FreeBSD, NetBSD, OpenBSD, Fink, MacPorts, and Cygwin. By default each repository is queried concurrently to keep latency low; the --no-threads option falls back to sequential lookups when this is undesirable.

How do I run a basic whohas example?

Run `whohas [package_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --no-threads do in whohas?

Disable multi-threaded queries (slower but easier to debug or rate-limit).