Sunday, March 3, 2013

Install repo on Ubuntu

Repo is a tool that makes it easier to work with Git in the context of Android.

- Before install repo, we have to install curl and git.

To install curl, enter the command in Terminal.

$sudo apt-get install curl

To install git, enter the command.

$sudo apt-get install git

- Then create bin/ directory in home directory, and include it in your path.

$ mkdir ~/bin
$ PATH=~/bin:$PATH

- Download the Repo script and ensure it is executable

$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo


To know more about how to download the source code od Android, read here.



No comments:

Post a Comment