2
0
mirror of https://github.com/bpkg/bpkg synced 2024-11-04 06:00:18 +00:00

Update README Fixes #76

This commit is contained in:
Jean Claveau 2019-12-05 15:27:51 +01:00 committed by Joseph Werle
parent 9ce37a2f98
commit 37008f0560

View File

@ -67,15 +67,9 @@ To directly install `bpkg` from its source code you have to clone its repository
```sh
$ git clone https://github.com/bpkg/bpkg.git
$ cd bpkg
$ ./setup.sh
```
Or in a directory with user write permission, like `$HOME/opt/bin`
```sh
$ git clone https://github.com/bpkg/bpkg.git
$ cd bpkg
$ PREFIX=$HOME/opt ./setup.sh
$ ./setup.sh # Will install bpkg in $HOME/.local/bin
$ sudo ./setup.sh # Will install bpkg in /usr/local/bin.
$ PREFIX=/my/custom/directory ./setup.sh # Will install bpkg in a custom directory.
```
## Usage
@ -84,9 +78,10 @@ You use `bpkg` by simply sending commands, pretty much like `npm` or `pip`.
### Installing packages
Packages can either be global (on `/usr/local/bin`) or local (under `./deps`).
Packages can either be global (on `/usr/local/bin` if installed as root or
`$HOME/.local/bin` otherwize) or local (under `./deps`).
For example, here's a **global install** of the [term package][term]:
For example, here's a **global install for the current user** of the [term package][term]:
```sh
$ bpkg install term -g