diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-03-17 18:01:06 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-03-17 18:01:06 +0100 |
commit | 468e45ed7f47ce41f196274519c6b59f3bf46f0e (patch) | |
tree | 5b77d64c8dbffc7e7050db921a2a685321856ea9 /doc/book/src/getting_started/binary.md | |
parent | 60f994a118afdde241d9a2296e2e8e090e08674d (diff) | |
download | garage-468e45ed7f47ce41f196274519c6b59f3bf46f0e.tar.gz garage-468e45ed7f47ce41f196274519c6b59f3bf46f0e.zip |
WIP doc
Diffstat (limited to 'doc/book/src/getting_started/binary.md')
-rw-r--r-- | doc/book/src/getting_started/binary.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/book/src/getting_started/binary.md b/doc/book/src/getting_started/binary.md index ba8838b6..9a18babc 100644 --- a/doc/book/src/getting_started/binary.md +++ b/doc/book/src/getting_started/binary.md @@ -19,4 +19,26 @@ sudo docker pull lxpz/garage_amd64:v0.1.1d ## From source +Garage is a standard Rust project. +First, you need `rust` and `cargo`. +On Debian: + +```bash +sudo apt-get update +sudo apt-get install -y rustc cargo +``` + +Then, you can ask cargo to install the binary for you: + +```bash +cargo install garage +``` + +That's all, `garage` should be in `$HOME/.cargo/bin`. +You can add this folder to your `$PATH` or copy the binary somewhere else on your system. +For the following, we will assume you copied it in `/usr/local/bin/garage`: + +```bash +sudo cp $HOME/.cargo/bin/garage /usr/local/bin/garage +``` |