1. UPDATE CYGWIN

First of all you will need to ensure that Cygwin has the necessary binaries required for apt-cyg. This is achieved via the use of the Cygwin setup executable via the Windows command prompt.

C:\Users\admin\Downloads\setup.exe -q -P  wget,tar,qawk,bzip2,subversion,vim

2. INSTALL APT-CYG

Next download and install apt-cyg from within Cygwin.
$ svn --force export http://apt-cyg.googlecode.com/svn/trunk/ /bin/ 
$ chmod +x /bin/apt-cyg

3. SYNTAX

"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

4. EXAMPLE

$ apt-cyg install rsync
Working directory is /setup
Mirror is ftp://mirror.mcs.anl.gov/pub/cygwin
--2011-05-09 06:44:24-- ftp://mirror.mcs.anl.gov/pub/cygwin/setup.bz2
=> `.listing'
Resolving mirror.mcs.anl.gov (mirror.mcs.anl.gov)... 2620:0:dc0:1800:214:4fff:fe7d:1b9, 146.137.96.15, 146.137.96.7
Connecting to mirror.mcs.anl.gov (mirror.mcs.anl.gov)|2620:0:dc0:1800:214:4fff:fe7d:1b9|:21... failed: Connection timed out.
Connecting to mirror.mcs.anl.gov (mirror.mcs.anl.gov)|146.137.96.15|:21... connected. !! Output Omitted !! 2011-05-09 06:45:16 (131 KB/s) - `rsync-3.0.8-1.tar.bz2' saved [272248] Unpacking...
Package rsync requires the following packages, installing:
libgcc1 libiconv2 libpopt0 cygwin
Package libgcc1 is already installed, skipping
Package libiconv2 is already installed, skipping
Package libpopt0 is already installed, skipping
Package cygwin is already installed, skipping
Package rsync installed

5. REFERENCES

https://www.fir3net.com/UNIX/Linux/cygwin-package-installation.html

 

最新文章

  1. 了解JavaScript 对象的属性操作
  2. 踩个猴尾不容易啊 Canvas画个猴子
  3. 首师大附中互测题:LJX的校园:入学典礼【C003】
  4. MyBatis实现关联表查询
  5. 【JAVA IO流之字符流】
  6. phpspec安装配置
  7. jQuery判断元素离页面顶部的高度
  8. UVa 1252 - Twenty Questions(记忆化搜索,状态压缩dp)
  9. 根据日期字符串获取星期几,日期获取星期,时间获取星期,js获取星期
  10. Cmake设置环境变量
  11. POJ 3020 Antenna Placement(无向二分图的最小路径覆盖)
  12. OGRE HelloWorld
  13. [51nod1254]最大子段和 V2
  14. WinServer2012 R2忘记密码的解决方案+远程连接另一种莫名其妙故障
  15. 目标检测算法YOLO算法介绍
  16. C#.NET 大型通用信息化系统集成快速开发平台 4.1 版本 - 严格的用户账户审核功能
  17. 【慕课网实战】一、以慕课网日志分析为例 进入大数据 Spark SQL 的世界
  18. Linux Ubuntu部署web环境及项目tomcat+jdk+mysql
  19. Codeforces gym101612 E.Equal Numbers(贪心)
  20. Can you find it?(数组+二分hdu2141)

热门文章

  1. java深入探究03
  2. C、C++、Java、JavaScript、PHP、Python、Ruby 这些语言分别主要用来开发什么?
  3. jQuery cookie 实现记住用户名和密码功能
  4. PLSQL Developer使用技巧整理
  5. MVC中使用showModalDialog
  6. Java企业微信开发_02_通讯录同步
  7. javaScript-进阶篇(一)
  8. 我对java的理解(二)——反射是小偷的万能钥匙
  9. 动态规划 两个字符串之间的编辑距离 leetcode72
  10. noip模拟赛 #3