Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 946 Bytes

README.md

File metadata and controls

64 lines (44 loc) · 946 Bytes

How

which for your executables.

A Linux/MacOS CLI to discover which package manager installed a command.

Useful when updating, removing, or troubleshooting packages.

Usage

how <command>

Tells you which package managers installed <command>.

Example

$ how git
> git installed by apt
$ how starship
> starship installed by cargo
> starship installed by brew

Installation

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.

Supported package managers

  • apt
  • Homebrew / Linuxbrew
  • npm -g
  • pip and pip3
  • snap
  • cargo
  • asdf

Contributing

  1. Install Rust
  2. Clone this repository

To run the CLI:

cargo run <command>