I want to install repo for working with the Android source files. How to install repo?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
From https://source.android.com/source/downloading#installing-repo:
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir working-directory-name
$ cd working-directory-name
$ repo init -u git://android.git.kernel.org/platform/manifest.git
Authoritative instructions
回答2:
If you are using Ubuntu 16.04, just use this command line:
sudo apt-get install repo -y
回答3:
The location changed to http://commondatastorage.googleapis.com/git-repo-downloads/repo:
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
回答4:
Repo is included in phablet-tools
package which is available from official package repository for Ubuntu releases starting from 14.04