是在ubuntu 10.04上操作的
1、安裝expect
sudo apt-get install expect
2、安裝repo
$ cd ~
$ mkdir bin
$ echo $PATH
$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod a+x ~/bin/repo
$ cp ~/bin/repo /sbin/repo
$ rm -rf ~/bin
建議下載到sbin下 curl http://android.git.kernel.org/repo >/sbin/repo |
安裝完後 運行
smit@smit-desktop:~$ repo
如果出現error: repo is not installed. Use "repo init" to install it here.
表示安裝成功。
3、repo是Google提供出來的,是一系列git命令的封裝。
如果用上面的方法安裝repo不成功,則將250服務器上的usr/local/bin/repo 拷到本機usr/local/bin下。