Ubuntu12.04下载Repo

时间:2023-03-08 18:02:39
Ubuntu12.04下载Repo

操作系统:Ubuntu12.04LTS 64bit

"#"号后面表示凝视内容

$cd ~ #进入下载文件夹

$mkdir bin #创建bin文件夹用于存储Repo脚本

$PATH=~/bin:$PATH #将bin文件夹增加系统路径中

$curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo #curl是一个基本命令行的文件传输工具,它支持许多的协议,这里我们利用curl来将repo保存到对应文件夹下

假设上面的地址无法訪问成功,能够尝试$curl https://android.googlesource.com/repo > ~/bin/repo

$chmod a+x ~/bin/repo #为/bin/repo添加运行权限