代码改变世界

cygwin包管理器apt-cyg

2014-10-07 14:01  chewein  阅读(284)  评论(0)    收藏  举报

下载与安装

{TOC}

通过终端安装apt-cyg之前选要安装以下软件包
wget
tar
gawk
bzip2


Cygwin终端安装

wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg -P /bin
chmod.exe +x /bin/apt-cyg

去googlecode手工下载安装

svn --force export http://apt-cyg.googlecode.com/svn/trunk/ /bin/   
chmod +x /bin/apt-cyg

去github手工下载安装

https://codeload.github.com/transcode-open/apt-cyg/zip/master
解压到用户目录
mv apt-cyg /bin/
chmod +x /bin/apt-cyg

apt-cyg使用

*apt-cyg install : to install packages
*apt-cyg remove : to remove packages
*apt-cyg update: to update setup.ini
*apt-cyg show: to show installed packages
*apt-cyg packageof : to locate parent packages
*apt-cyg find <pattern(s)>: to find packages matching patterns
*apt-cyg describe <pattern(s)>: to describe packages matching patterns


apt-cyg配置

*配置安装源
apt-cyg -m http://mirrors.163.com/cygwin/