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 ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.26

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 days12,496
Downloads309,787
Analytics install events (30 days)2,928
Downloads / install events (30 days)4.3×

Source: GitHub Packages, fetched 2026-12-01T01:11:15Z. Analytics dates: 2026-11-01 to 2026-12-01. 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,9286,57131,916
Installs (--HEAD)005
Installs on Request2834602,767
Installs on Request (--HEAD)005
Build Errors0