BRA1L0R / commando

A fast, locate-like utility to search for commands on Arch Linux repos. Performant alternative to pacman -F for binaries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Commando

A fast utility to search which packages provide a specific command on Arch and Arch based systems.

Why

Because pacman -F was too slow to be set as fallback for a "command not found" exception in a shell.

How to use it

Database creation/update

Right after installing it create your database with:

$ commando -u

It may take a while depending on your connection speed and your computer, but you only need to create/update your database the first time and every once in a while. I'd suggest perhaps once every one or two months, but it's entirely up to you.

Database search

Now you're ready to search with commando!

Just search your command with:

$ commando command-name

For example, if I wanted to see which packages provide the ls command, I'd just do:

$ commando ls

For further usage instructions, please execute:

$ commando --help

Note: command search is case sensitive, this means that, for example, searching for LS won't give the same results of ls

How to install

(AUR release is coming soon)

As of now, you'll need to compile it yourself with:

$ cargo build --release

Then you'll have your binary placed in ./target/release/commando, simply move it to somewhere in your $PATH.

About

A fast, locate-like utility to search for commands on Arch Linux repos. Performant alternative to pacman -F for binaries

License:MIT License


Languages

Language:Rust 100.0%