layout | title | tabtitle | tagline |
---|---|---|---|
page |
Home |
bpkg home |
Supporting tagline |
{% include JB/setup %}
JavaScript has npm, Ruby has Gems, Python has pip and now Shell has bpkg!
With bpkg you can easily install and manage Bash packages.
It takes care of installing/uninstalling, execution permissions and everything so you can simply do the following:
{% highlight bash %}
Installs term
on /usr/local/bin
(https://github.com/bpkg/term)
$ bpkg install term -g $ term {% endhighlight %}
Besides installing shell scripts globally you can use them on a per-project basis.
{% highlight bash %}
$ bpkg install term $ ./deps/term/term.sh {% endhighlight %}
You can install bpkg from 3 methods:
Our custom install script will take care of everything for you. Just paste the following on your shell:
{% highlight bash %} $ curl -sLo- https://get.bpkg.sh | bash {% endhighlight %}
If you want to see what's inside it, access it directly or check it out on the repository.
clibs is a great package manager for the C language. If you have it, installing bpkg is as simple as:
{% highlight bash %} $ clib install bpkg/bpkg {% endhighlight %}
If you prefer to handle source code, clone bpkg's repository and install it on the following way:
{% highlight bash %} $ git clone https://github.com/bpkg/bpkg.git $ cd bpkg $ ./setup.sh install {% endhighlight %}