LinuxCommandLibrary

bun-why

Determine package installation reasons

TLDR

Explain why a specific package is installed

$ bun why [package_name]
copy

Explain why all packages matching a pattern are installed
$ bun why "[pattern]"
copy

Explain why packages from a specific organization are installed
$ bun why "@[organization]/*"
copy

Show only top-level dependencies
$ bun why [package_name] --top
copy

Limit the dependency tree depth
$ bun why [package_name] --depth [number]
copy

SYNOPSIS

bun-why [options] [args]
(No standard syntax documented)

DESCRIPTION

The command bun-why is not a standard Linux utility found in common distributions like Ubuntu, Fedora, or Debian. No man page or entry exists for it in coreutils, busybox, or other standard packages.

It may refer to a custom script, alias, or tool from a specific project. Notably, bun is a popular all-in-one JavaScript runtime, bundler, package manager, and test runner (similar to Node.js + npm + esbuild + jest). However, bun does not have a subcommand or option named why. Bun's package manager supports commands like bun install, bun add, bun run, and bun pm ls for listing dependencies, but lacks a 'why' feature akin to yarn why for dependency resolution explanations.

If this is a typo, consider bunzip2(1) for decompressing .bz2 files, bwrap(1) for sandboxing, or Bun's main bun(1) command. Verify with which bun-why or man bun-why in your environment.

CAVEATS

Command not found in standard Linux PATH or man pages. May require custom installation or be environment-specific. Avoid running unknown commands for security.

POSSIBLE ALTERNATIVES

For dependency 'why': Use bun pm ls --why (experimental in recent Bun versions) or yarn why <pkg>. For compression: bunzip2 file.bz2.

INSTALLATION CHECK

Install Bun via curl -fsSL https://bun.sh/install | bash, then bun --help to explore subcommands.

HISTORY

No documented history as it is not a standard command. Bun runtime was created by Jarred Sumner in 2022, reaching v1.0 in 2023, focusing on speed via JavaScriptCore and Zig.

SEE ALSO

bun(1), bunzip2(1), bwrap(1), yarn(1), npm(1)

Copied to clipboard