是在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下。