How to install repo

转自http://lijianyeath.blog.163.com/blog/static/126114904201073043712/?fromdm&fromSearch&isFromSearchEngine=yes

# cd ~
# mkdir bin
# cd bin
# curl https://android.git.kernel.org/repo > repo
# ls -ltr
-rw-r--r-- 1 root root 17211 Apr 15 23:19 repo
# chmod a+x repo
# ls -l
-rwxr-xr-x 1 root root 17211 Apr 15 23:19 repo
# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/­bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
# which repo
/root/bin/repo

# repo -h
usage: repo COMMAND [ARGS]

repo is not yet installed.  Use "repo init" to install it here.

The most commonly used repo commands are:

  init      Install repo in the current working directory
  help      Display detailed help on a command

For access to the full online help, install repo ("repo init").

你可能感兴趣的:(Linux配置)