which for your executables.
A Linux/MacOS CLI to discover which package manager installed a command.
Useful when updating, removing, or troubleshooting packages.
how <command>Tells you which package managers installed <command>. Also resolves the command via type first, so you see whether it's an executable path, a shell alias, function, or builtin — and alias targets are followed before the package-manager checks run.
$ how git
> git installed by apt$ how starship
> starship installed by cargo
> starship installed by brewYou must have Rust installed. If you don't, you can install it with rustup.
Then, run:
cargo install --git https://github.com/danilofuchs/how.gitRequires a POSIX
shinPATH(used to invoketype).
aptdnf/rpm(Fedora, RHEL)pacman(Arch)- Homebrew / Linuxbrew
- MacPorts
snapnpm -gpnpm -gyarn globalbunpipandpip3pipxuv toolgemcargogo install- asdf
- mise
- nvm
- corepack
- pyenv
- rbenv
- Install Rust
- Clone this repository
To run the CLI:
cargo run <command>