This is an old revision of the document!
Overview
Tutorial on how to use Google repo
tool, using AGL (Automotive Grade Linux) as an example.
Links:
Installing "repo" launcher tool
Install the repo
launcher tool in your personal ~/bin
directory:
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod +x ~/bin/repo
Note well that this is not the repo
command itself; rather, it is the launcher tool that will, every time you initialize a new repo directory, copy the actual repo
command into that new directory.
Do not confuse these two things; that is a common misunderstanding.
Initializing a repo repository
After creating a new directory:
$ mkdir repo_dir $ cd repo_dir
initialize a new (in this case, AGL) repo directory:
$ repo init -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
and note carefully what that accomplished.
The repo
command you ran in the above command was the launcher tool in your home directory, and the end result is to populate your current directory with, well:
$ ls -AF .repo/ $