1) Make sure 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 installation:
1 | $ repo -help |
You could see a message similar to the following:
Common commands:
1 2 3 | init -> install repo in current directoryhelp -> display the details on a command You could also install the repo like the url: https://source.android.com/source/downloading.html. |