HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

bpkg — A package manager for Bash scripts. More information: <https://github.com/bpkg/bpkg>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandbpkgclibashscriptspackageformanager

Problem

How to use the bpkg command: A package manager for Bash scripts. More information: <https://github.com/bpkg/bpkg>.

Solution

bpkg — A package manager for Bash scripts. More information: <https://github.com/bpkg/bpkg>.

Update the local index:
bpkg update


Install a package globally:
bpkg install --global {{package}}


Install a package in a subdirectory of the current directory:
bpkg install {{package}}


Install a specific version of a package globally:
bpkg install {{package}}@{{version}} -g


Show details about a specific package:
bpkg show {{package}}


Run a command, optionally specifying its arguments:
bpkg run {{command}} {{argument1 argument2 ...}}

Code Snippets

Update the local index

bpkg update

Install a package globally

bpkg install --global {{package}}

Install a package in a subdirectory of the current directory

bpkg install {{package}}

Install a specific version of a package globally

bpkg install {{package}}@{{version}} -g

Show details about a specific package

bpkg show {{package}}

Context

tldr-pages: common/bpkg

Revisions (0)

No revisions yet.