cygwin下apt-cyg安装使用
2013-11-20 13:59
309 查看
(转自 http://blog.csdn.net/forlong401/article/details/8517711 作者:forlong401)
很多时候,我们在windows下安装完cygwin后,使用时发现装少了软件。那么怎么办?
1)有的人说用setup.exe那个玩意再搞一遍。个人比较觉得那个方法蛋疼。
2)有的人说用find命令,怎么安装之类的,也不太爽。
3)后来发现apt-cyg这个程序,真是强大啊。使用方法和ubuntu下的apt-get一样。爽死啦。
安装apt-cyg的方法如下(在cygwin中输入如下命令):
使用apt-cyg来安装软件:
好了开始下载android源代码吧:
新建home下的bin目录:
下载repo:
新建工程目录:
初始化仓库:
很多时候,我们在windows下安装完cygwin后,使用时发现装少了软件。那么怎么办?
1)有的人说用setup.exe那个玩意再搞一遍。个人比较觉得那个方法蛋疼。
2)有的人说用find命令,怎么安装之类的,也不太爽。
3)后来发现apt-cyg这个程序,真是强大啊。使用方法和ubuntu下的apt-get一样。爽死啦。
安装apt-cyg的方法如下(在cygwin中输入如下命令):
# svn --force export http://apt-cyg.googlecode.com/svn/trunk/ /bin/ # chmod +x /bin/apt-cyg
使用apt-cyg来安装软件:
# apt-cyg install git-core gnupg flex bison gperf build-essential zip curl
好了开始下载android源代码吧:
新建home下的bin目录:
$ mkdir ~/bin $ PATH=~/bin:$PATH
下载repo:
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod a+x ~/bin/repo
新建工程目录:
$ mkdir WORKING_DIRECTORY $ cd WORKING_DIRECTORY
初始化仓库:
$ repo init -u https://android.googlesource.com/platform/manifest[/code] 下载文件:$ repo sync
参考:
你要是想看看这个牛逼的软件是怎么实现的可以checkout过来看看(其实就是shell脚本。O(∩_∩)O哈哈~):
svn checkout http://apt-cyg.googlecode.com/svn/trunk/
apt-cyg-read-only
工程链接如下:
http://code.google.com/p/apt-cyg/
当然如果屌丝想看英文就看吧:apt-cyg is a command-line installer for Cygwin which cooperates with Cygwin Setup and uses the same repository. The syntax is similar to apt-get. Usage examples:
Intro
"apt-cyg install <package names>" to install packages
"apt-cyg remove <package names>" to remove packages
"apt-cyg update" to update setup.ini
"apt-cyg show" to show installed packages
"apt-cyg find <pattern(s)>" to find packages matching patterns
"apt-cyg describe <pattern(s)>" to describe packages matching patterns
"apt-cyg packageof <commands or files>" to locate parent packagesFirst install subversion and wget through the standard cygwin setup program. Then run the following commands:
Quick start# svn --force export http://apt-cyg.googlecode.com/svn/trunk/ /bin/ # chmod +x /bin/apt-cyg
use apt-cyg, for example:# apt-cyg install nano
相关文章推荐
- cygwin下使用apt-cyg 安装软件及遇到MD5 sum did not match, exiting的问题
- Cygwin使用之神器apt-cyg安装与使用
- 在windows下使用Cygwin模拟unix环境,并安装apt-cyg,repo等工具
- 使用apt-cyg安装cygwin环境下的unix工具
- 在windows下使用Cygwin模拟unix环境,并安装apt-cyg,repo等工具
- cygwin上安装使用apt-cyg
- Cygwin 下的 自动安装工具 apt-cyg
- Cygwin下软件安装 - apt-cyg
- cygwin安装apt-cyg
- cygwin 安装apt-cyg命令
- cygwin安装apt-cyg
- Cygwin下面,apt-cyg的使用方法和基本原理
- cygwin安装apt-cyg
- cygwin中安装apt-cyg管理工具注意事项
- cygwin 安装apt-cyg命令
- windows8.1下安装Cygwin并通过apt-cyg安装软件包
- cygwin安装配置apt-cyg工具
- cygwin安装apt-cyg
- cygwin 安装 apt-cyg
- Windows下安装Cygwin及包管理器apt-cyg(转)