pkg.soopen package index

brew / 排名 980

使用 Homebrew, apt, apk, chocolatey, dnf, Nix, pacman, zypper, scoop, winget 安装 gnu-which

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gnu-which

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install gnu-which

Debian stable package indexes · gnu-which · 来源: deb.debian.org

Alpine Linux apk已验证 · 92%
sudo apk add which

Alpine Linux edge package indexes · which · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install which

Fedora Rawhide package metadata · which · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#which

nixpkgs package indexes · pkgs/by-name/wh/which/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S which

Arch Linux sync databases · which · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install which

openSUSE Tumbleweed package metadata · which · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install which

Chocolatey community package catalog · which · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/which

Scoop official bucket manifest trees · bucket/which.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id GnuWin32.Which -e

Windows Package Manager source index · GnuWin32.Which · 来源: cdn.winget.microsoft.com

概览

软件包摘要

GNU implementation of which utility

命令和别名

  • which

历史

项目历史与用法

GNU Which is the GNU implementation of the which utility, a small command that reports which executable a shell would find for a command name. Its domain is intentionally narrow: inspect command search paths and explain why a name resolves to one program rather than another.

项目历史

The official Savannah project page is the package home, and the GNU FTP archive records public releases from which 2.16 and 2.17 in 2007 through later 2.x releases. After version 2.21 in 2015, GNU FTP shows renewed releases in the 2.22, 2.23, and 2.25 line during 2025 and 2026.

采用历史

The utility is widely familiar because shells, Unix variants, and GNU systems all have command lookup workflows. GNU Which remains separately packaged for environments where users want GNU behavior, GNU licensing, or an external executable rather than a shell builtin or shell-specific type command.

使用方式

Practitioners use which when debugging PATH order, checking whether a package installed the expected executable, documenting build prerequisites, or explaining why scripts pick one compiler, interpreter, or helper over another.

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

The significance is mostly operational: it is a tiny diagnostic tool for path hygiene. In package-manager culture, which helps confirm shims, keg-only tools, alternatives systems, and GNU-prefixed replacements without reading shell startup files by hand.

时间线

  • 2007: GNU FTP archive lists which 2.16 and 2.17.
  • 2015: GNU FTP archive lists which 2.21.
  • 2025: GNU FTP archive lists which 2.22 and 2.23.
  • 2026: GNU FTP archive lists which 2.25.

Related projects

  • Related tools include shell builtins such as command -v and type, POSIX shell command lookup, alternatives systems, and package-manager shim directories.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
which可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本2.25
管理器更新时间2026-05-23
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:gnu-which
版本2.25
软件包管理器Homebrew
主页https://savannah.gnu.org/projects/which/
最后更新2026-05-23T14:07:00-04:00
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

gnu-which 2.21+dfsg-5

Utility to show the full path of commands

https://savannah.gnu.org/projects/which

sudo apt install gnu-which
  • Section: utils
  • Architecture: amd64
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gnu Which
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gnu-which from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

gnu-which 2.21+dfsg-4build1

Utility to show the full path of commands

https://savannah.gnu.org/projects/which

sudo apt install gnu-which
  • Section: universe/utils
  • Architecture: amd64
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gnu Which
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gnu-which from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Nix92%

which

nix profile install nixpkgs#which
  • installed executable or alias match
  • 匹配方式:Which
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/wh/which/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk92%

which 2.25-r0

A utility to show the full path of commands

https://savannah.gnu.org/projects/which

sudo apk add which
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: which
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Which
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: which from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

which-doc 2.25-r0

A utility to show the full path of commands (documentation)

https://savannah.gnu.org/projects/which

sudo apk add which-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: which
  • installed executable or alias match
  • 匹配方式:Which
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: which-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf92%

which 2.25-2.fc45

Displays where a particular program in your path is located

https://savannah.gnu.org/projects/which/

sudo dnf install which
  • License: GPL-3.0-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: which
  • 3 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Which
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: which from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
pacman92%

which 2.25-1

A utility to show the full path of commands

https://savannah.gnu.org/projects/which/

sudo pacman -S which
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • 2 依赖
  • installed executable or alias match
  • 匹配方式:Which
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: which from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz
zypper92%

which 2.25-1.3

Displays where a particular program in your path is located

https://savannah.gnu.org/projects/which/

sudo zypper install which
  • License: GPL-3.0-or-later
  • Category: System/Base
  • Architecture: x86_64
  • Source Package: which
  • 1 依赖
  • 2 提供
  • installed executable or alias match
  • 匹配方式:Which
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: which from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
Chocolatey92%

which

choco install which
  • installed executable or alias match
  • 匹配方式:Which
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: which from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','westwindwebsurge'
Scoop92%

main/which

scoop install main/which
  • installed executable or alias match
  • 匹配方式:Which
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/which.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget92%

GnuWin32.Which

winget install --id GnuWin32.Which -e
  • installed executable or alias match
  • 匹配方式:Which
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: GnuWin32.Which from https://cdn.winget.microsoft.com/cache/source.msix
winget92%

allankoechke.which

winget install --id allankoechke.which -e
  • installed executable or alias match
  • 匹配方式:Which
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: allankoechke.which from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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