macOS
brew install gnu-whichlocal Homebrew formula metadata
brew / rank 980
GNU implementation of which utility. Version 2.25 via Homebrew; verified 2026-05-23. Also installable with debian: sudo apt install gnu-which.
install
brew install gnu-whichlocal Homebrew formula metadata
sudo apt install gnu-whichDebian stable package indexes · gnu-which · source: deb.debian.org
sudo apk add whichAlpine Linux edge package indexes · which · source: dl-cdn.alpinelinux.org
sudo dnf install whichFedora Rawhide package metadata · which · source: dl.fedoraproject.org
nix profile install nixpkgs#whichnixpkgs package indexes · pkgs/by-name/wh/which/package.nix · source: api.github.com
sudo pacman -S whichArch Linux sync databases · which · source: geo.mirror.pkgbuild.com
sudo zypper install whichopenSUSE Tumbleweed package metadata · which · source: download.opensuse.org
choco install whichChocolatey community package catalog · which · source: community.chocolatey.org
scoop install main/whichScoop official bucket manifest trees · bucket/which.json · source: api.github.com
winget install --id GnuWin32.Which -eWindows Package Manager source index · GnuWin32.Which · source: cdn.winget.microsoft.com
overview
GNU implementation of which utility
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
which | executable | indexed executable | Discovered from the local executable index. |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:gnu-which |
|---|---|
| Version | 2.25 |
| Package manager | Homebrew |
| Homepage | https://savannah.gnu.org/projects/which/ |
| Last updated | 2026-05-23T14:07:00-04:00 |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
gnu-which 2.21+dfsg-5
Utility to show the full path of commands
https://savannah.gnu.org/projects/which
sudo apt install gnu-whichgnu-which 2.21+dfsg-4build1
Utility to show the full path of commands
https://savannah.gnu.org/projects/which
sudo apt install gnu-whichwhich
nix profile install nixpkgs#whichwhich 2.25-r0
A utility to show the full path of commands
https://savannah.gnu.org/projects/which
sudo apk add whichwhich-doc 2.25-r0
A utility to show the full path of commands (documentation)
https://savannah.gnu.org/projects/which
sudo apk add which-docwhich 2.25-2.fc45
Displays where a particular program in your path is located
https://savannah.gnu.org/projects/which/
sudo dnf install whichwhich 2.25-1
A utility to show the full path of commands
https://savannah.gnu.org/projects/which/
sudo pacman -S whichwhich 2.25-1.3
Displays where a particular program in your path is located
https://savannah.gnu.org/projects/which/
sudo zypper install whichwhich
choco install whichmain/which
scoop install main/whichGnuWin32.Which
winget install --id GnuWin32.Which -eallankoechke.which
winget install --id allankoechke.which -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.