# Installer gnu-which avec Homebrew, apt, apk, chocolatey, dnf, Nix, pacman, zypper, scoop, winget

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de gnu-which pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:gnu-which
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install gnu-which
```

  Preuve: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install gnu-which
```

  Preuve: Debian stable package indexes: gnu-which from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- apk (92%):

```sh
sudo apk add which
```

  Preuve: Alpine Linux edge package indexes: which from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install which
```

  Preuve: Fedora Rawhide package metadata: which from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#which
```

  Preuve: nixpkgs package indexes: pkgs/by-name/wh/which/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S which
```

  Preuve: Arch Linux sync databases: which from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install which
```

  Preuve: openSUSE Tumbleweed package metadata: which from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install which
```

  Preuve: Chocolatey community package catalog: which from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','westwindwebsurge'

- Scoop (92%):

```sh
scoop install main/which
```

  Preuve: Scoop official bucket manifest trees: bucket/which.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id GnuWin32.Which -e
```

  Preuve: Windows Package Manager source index: GnuWin32.Which from https://cdn.winget.microsoft.com/cache/source.msix

## Faits du paquet

- **Clé du paquet:** brew:gnu-which
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/gnu-which>
- **Version:** 2.25
- **Résumé source:** GNU implementation of which utility
- **Page d'accueil:** <https://savannah.gnu.org/projects/which/>
- **Docs amont:** <https://savannah.gnu.org/projects/which/>
- **Licence:** GPL-3.0-or-later
- **Archive source:** <https://ftpmirror.gnu.org/gnu/which/which-2.25.tar.gz>
- **Dernière mise à jour:** 2026-05-23T14:07:00-04:00
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- which (cli)
- which (alias)

## Comportement d'installation

- hook post-installation: non défini
- Précautions: 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"
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 2.25
- gestionnaire mis à jour: 2026-05-23
- données locales: OK
- dépôt amont: https://savannah.gnu.org/projects/which/
- info: Release/tag comparison is only available for GitHub repositories.
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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.

### Sources

- <https://formulae.brew.sh/formula/gnu-which>
- <https://ftp.gnu.org/gnu/which/>
- <https://savannah.gnu.org/projects/which>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Détails de la base source

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gnu-which
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Autres enregistrements de gestionnaires de paquets

- Debian apt - gnu-which - 2.21+dfsg-5: normalized package name match | Debian stable package indexes: gnu-which from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Utility to show the full path of commands | https://savannah.gnu.org/projects/which
- Ubuntu apt - gnu-which - 2.21+dfsg-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: gnu-which from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Utility to show the full path of commands | https://savannah.gnu.org/projects/which
- Nix - which: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/wh/which/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - which - 2.25-r0: installed executable or alias match | Alpine Linux edge package indexes: which from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A utility to show the full path of commands | https://savannah.gnu.org/projects/which
- apk - which-doc - 2.25-r0: installed executable or alias match | Alpine Linux edge package indexes: which-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A utility to show the full path of commands (documentation) | https://savannah.gnu.org/projects/which
- dnf - which - 2.25-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: which from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Displays where a particular program in your path is located | https://savannah.gnu.org/projects/which/
- pacman - which - 2.25-1: installed executable or alias match | Arch Linux sync databases: which from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | A utility to show the full path of commands | https://savannah.gnu.org/projects/which/
- zypper - which - 2.25-1.3: installed executable or alias match | openSUSE Tumbleweed package metadata: which from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Displays where a particular program in your path is located | https://savannah.gnu.org/projects/which/
- Chocolatey - which: installed executable or alias match | Chocolatey community package catalog: which from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','westwindwebsurge'
- Scoop - main/which: installed executable or alias match | Scoop official bucket manifest trees: bucket/which.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - GnuWin32.Which: installed executable or alias match | Windows Package Manager source index: GnuWin32.Which from https://cdn.winget.microsoft.com/cache/source.msix
- winget - allankoechke.which: installed executable or alias match | Windows Package Manager source index: allankoechke.which from https://cdn.winget.microsoft.com/cache/source.msix


## Liens liés

- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/fr/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/fr/brew-utility-packages/) - Matched Homebrew package provider.
- [Secret-risk packages](https://pkg.so/fr/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [bash](https://pkg.so/fr/brew/bash/) - Shares pkgdb curated category or tags: cli, gnu, shell, system.
- [coreutils](https://pkg.so/fr/brew/coreutils/) - Shares pkgdb curated category or tags: cli, gnu, system.
- [glibc](https://pkg.so/fr/brew/glibc/) - Shares pkgdb curated category or tags: cli, gnu, system.
- [nushell](https://pkg.so/fr/brew/nushell/) - Shares pkgdb curated category or tags: cli, shell, system.
- [bc](https://pkg.so/fr/brew/bc/) - Shares pkgdb curated category or tags: cli, gnu, system.
- [stow](https://pkg.so/fr/brew/stow/) - Shares pkgdb curated category or tags: cli, gnu, system.
- [findutils](https://pkg.so/fr/brew/findutils/) - Shares pkgdb curated category or tags: cli, gnu, system.
- [thefuck](https://pkg.so/fr/brew/thefuck/) - Shares pkgdb curated category or tags: cli, shell, system.
- [gnu-time](https://pkg.so/fr/brew/gnu-time/) - Package names and metadata indicate a similar tool family. Shared terms: cli, gnu, implementation, system.
- [i686-elf-grub](https://pkg.so/fr/brew/i686-elf-grub/) - Local package facts share a topical domain. Shared terms: cli, gnu, system.
- [x86_64-elf-grub](https://pkg.so/fr/brew/x86-64-elf-grub/) - Local package facts share a topical domain. Shared terms: cli, gnu, system.

## Combined YAML source

View the package source record on GitHub. [combined/gnu-which.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gnu-which.yml)


## Sources

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