3

I am trying to install google repo on my machine. The reference link is http://source.android.com/source/downloading.html#installing-repo

After chmod a+x ~/bin/repo, and after installing repo go ahead with further steps.

Do I have execute the repo file? I just understood that I need to install repo before proceeding to further steps but how? I am new to mac and have no idea how to execute a file.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
user1079065
  • 2,085
  • 9
  • 30
  • 53
  • Possible duplicate of [How to install Android's repo on my Ubuntu system?](https://stackoverflow.com/questions/4350344/how-to-install-androids-repo-on-my-ubuntu-system) – Gino Mempin Aug 16 '19 at 00:35

2 Answers2

4

You can type in terminal the following comands:

   curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
   chmod a+x ~/bin/repo
madlymad
  • 6,367
  • 6
  • 37
  • 68
leesagacious
  • 182
  • 1
  • 8
0

I have no experience of using repo on mac, but according my experience on linux, after you change the mode, i.e run 'chmod' to give repo, in fact python scripts, the right of execute, you should add '~/bin/repo' to you PATH environment variables. After doing these config, you can repo command, such as 'repo init', 'repo sync' anywhere you like.

gzh
  • 3,507
  • 2
  • 19
  • 23