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>
.
$ how git
> git installed by apt
$ how starship
> starship installed by cargo
> starship installed by brew
You must have Rust installed. If you don't, you can install it with rustup.
Then, run:
cargo install --git https://github.com/danilofuchs/how.git
You also must have
which
installed.
apt
- Homebrew / Linuxbrew
npm -g
pip
andpip3
snap
cargo
- asdf
- Install Rust
- Clone this repository
To run the CLI:
cargo run <command>