How to install Android's repo on my Ubuntu sys

2020-02-26 09:33发布

问题:

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



标签: android repo