LinuxCommandLibrary

needs

Check if required executables are installed on the system

TLDR

Check if tools are installed
$ needs [tool1] [tool2] [tool3]
copy
Check without version lookups
$ needs --no-version [tool1] [tool2]
copy
Check from a requirements file
$ needs -f [needsfile]
copy

SYNOPSIS

needs [options] [executables...]

DESCRIPTION

needs is a CLI tool that verifies whether specified executables are installed on a system and can retrieve their version information. It runs checks with multi-threaded execution, provides colored output, supports pipe-friendly output, and logs timing per command.
Exit codes indicate whether all required tools are present, making it suitable for use in scripts and CI pipelines.

PARAMETERS

--no-version

Skip version checks for faster execution.
-f, --file FILE
Read requirements from a needsfile.
-v, --verbose
Show detailed timing and log information.

CAVEATS

Version detection relies on each tool supporting a standard version flag (--version or -v). Some tools may not be detected correctly.

HISTORY

needs was created by NQMVD and is written in Rust.

SEE ALSO

which(1), command(1), has(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard