← 返回命令列表

Linux command

bpkg 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Install a package globally

bpkg install [package-name] -g

Install a specific version

bpkg install [package-name]@[version]

Install package locally

bpkg install [package-name]

Install dependencies

bpkg getdeps

Run a package script

bpkg run [script-name]

Run a script with arguments

bpkg run [script-name] "[arg1]" "[arg2]"

List available scripts

bpkg run --list

Get package info

bpkg package

说明

bpkg is a lightweight bash package manager that fetches and installs shell scripts from GitHub repositories. It handles downloading, setting permissions, and organizing scripts either globally or on a per-project basis. Packages are configured using a bpkg.json file that defines metadata, dependencies, and executable scripts. The tool works similarly to npm for Node.js or pip for Python.

参数

-g, --global
Install package globally to ${PREFIX:-/usr/local/bin}
-l, --list
List available commands (with run)
-h, --help
Show help message
-V, --version
Show version information
@version
Specify package version (e.g., package@1.0.0)

FAQ

What is the bpkg command used for?

bpkg is a lightweight bash package manager that fetches and installs shell scripts from GitHub repositories. It handles downloading, setting permissions, and organizing scripts either globally or on a per-project basis. Packages are configured using a bpkg.json file that defines metadata, dependencies, and executable scripts. The tool works similarly to npm for Node.js or pip for Python.

How do I run a basic bpkg example?

Run `bpkg install [package-name] -g` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -g, --global do in bpkg?

Install package globally to ${PREFIX:-/usr/local/bin}