cygwin下apt-cyg安装使用
来源:互联网 发布:华为云计算部门结构 编辑:程序博客网 时间:2024/06/05 20:55
(转自 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中输入如下命令):
# 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
下载文件:$ 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/
当然如果屌丝想看英文就看吧:
Intro
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:
- "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 packages
Quick start
First install subversion and wget through the standard cygwin setup program. Then run the following commands:
# 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安装使用
- cygwin安装apt-cyg
- cygwin安装apt-cyg
- cygwin安装apt-cyg
- cygwin安装apt-cyg
- cygwin上安装使用apt-cyg
- cygwin 安装apt-cyg命令
- cygwin 安装apt-cyg命令
- Cygwin使用之神器apt-cyg安装与使用
- 在windows下使用Cygwin模拟unix环境,并安装apt-cyg,repo等工具
- 在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包管理器
- C# 将图片导出Excel(包括 创建Excel 、文件压缩、递归删除文件及文件夹)
- WCF 创建简单的CF程序VS2008
- C#窗体控件简介ListBox
- 常用排序算法
- booststrap中的navbar
- cygwin下apt-cyg安装使用
- id 和 instancetype
- nodejs入门
- PJSIP协议研究
- [LeetCode]Sort List
- UItableviewCell 自定义
- oracle结构化查询语句
- c++ char转换为string
- jQuery获取Radio选择的Value值: