1) Ensure there is a ~/bin directory in your home director:
1 | $ mkdir ~/bin |
2) Download repo script:
1 | $ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo |
3) Add executable permissions to repo
1 | $ chmod a+x ~/bin/repo |
4) Include the installation directory of repo in your path:
1 | $ export PATH=~/bin:$PATH |
5) Run repo –help to verify the installatio:
1 | $ repo -help |
You could see a message similar to the following:
Common commands:
1 2 | init -> install repo in current directory help -> display the details on a command |
You could also install the repo like the url: https://source.android.com/source/downloading.html.