https://github.com/danilofuchs/how
https://github.com/danilofuchs/how
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danilofuchs/how
- Owner: danilofuchs
- Created: 2024-12-15T20:16:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-15T20:18:32.000Z (over 1 year ago)
- Last Synced: 2024-12-15T21:24:29.031Z (over 1 year ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```sh
how
```
Tells you which package managers installed ``.
### Example
```sh
$ how git
> git installed by apt
```
```sh
$ 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](https://rustup.rs/).
Then, run:
```sh
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:
```sh
cargo run
```