repo配置与连接

repo是远程访问android源码的工具,和git一起使用。

repo的远程安装经常被屏蔽,你懂得。

sudo apt-get  install  curl
  244  sudo apt-get -f install  curl
  245  curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
  246  sudo curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
  247  curl  http://android.git.kernel.org/repo  > ~/bin/repo

上面245、246、247行的地址经常被封。所以,我只能用一些其他的地址。

254  curl http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo> ~/bin/repo

263  chmod a+x ~/bin/repo
加载完repo,然后要修改权限。使之能够读写。

后运行其他的。

注:可用~/bin/repo运行repo命令。

原文地址:https://www.cnblogs.com/hcu5555/p/3340440.html