gnu-which

Install command:
brew install gnu-which

GNU implementation of which utility

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

License: GPL-3.0-or-later

Development: Pull requests

Formula JSON API: /api/formula/gnu-which.json

Formula code: gnu-which.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
macOS on
Intel
sonoma ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.25

Binaries: which

GNU "which" has been installed as "gwhich".
If you need to use it as "which", you can add a "gnubin" directory
to your PATH from your bashrc like:

     PATH="$HOMEBREW_PREFIX/opt/gnu-which/libexec/gnubin:$PATH"

GitHub Packages downloads:

Last 30 days7,416
Downloads297,539
Analytics install events (30 days)2,458
Downloads / install events (30 days)3.0×

Source: GitHub Packages, fetched 2026-11-03T00:41:21Z. Analytics dates: 2026-10-04 to 2026-11-03. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs2,4585,59629,536
Installs (--HEAD)005
Installs on Request1372952,594
Installs on Request (--HEAD)005
Build Errors0