From 34bc5712eb7e09f9fc5b39ae78786775ad3023e8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 18 Nov 2019 02:27:57 -0500 Subject: [PATCH] README: add install details Change-Id: I57043449a7927068fa5735cb71633353e1039532 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/245816 Reviewed-by: David Pursehouse Tested-by: Mike Frysinger --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index acd48036..316b93a9 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,22 @@ that you can put anywhere in your path. * [repo Manifest Format](./docs/manifest-format.md) * [repo Hooks](./docs/repo-hooks.md) * [Submitting patches](./SUBMITTING_PATCHES.md) + +## Install + +Many distros include repo, so you might be able to install from there. +```sh +# Debian/Ubuntu. +$ sudo apt-get install repo + +# Gentoo. +$ sudo emerge dev-vcs/repo +``` + +You can install it manually as well as it's a single script. +```sh +$ mkdir -p ~/.bin +$ PATH="${HOME}/.bin:${PATH}" +$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo +$ chmod a+rx ~/.bin/repo +```