(转)cygwin包管理器apt-cyg

时间:2014-12-11 00:13:23   收藏:0   阅读:253

通过终端安装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 : to find packages matching patterns
*apt-cyg describe : to describe packages matching patterns</PATTERN(S)></PATTERN(S)>


apt-cyg配置

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

 

export LANG="zh_CN.GBK"

alias ls="ls --color=auto"
alias dir="ls --color=auto"

export PS1="\[\e]0;\w\a\]\[\e[32m\]\u@\h:\[\e[33m\]\w\[\e[0m\]\$ "

alias ..="cd .."

alias ...="cd ..."

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!