Friday, March 12, 2010

cyg-apt: apt-get for cygwin

You want to be able to apt-get intall stuff in cygwin?
Enter cyg-apt2.

First Install cygwin on WinBox with these packages:
wget
python


Then install cyg-apt

# Installing cyg-apt
start > run > cmd > cd c:\cygwin\
cygwin.bat
cd / # yes, you need to be at root
wget http://github.com/snaka/cyg-apt/raw/master/cyg-apt2 -o /usr/local/bin
wget http://github.com/snaka/cyg-apt/raw/master/cyg-apt -o /usr/local/bin
vim /usr/local/bin/cyg-apt2
# replace mirror with http://mirrors.rcn.net/pub/sourceware/cygwin (or some similar working mirror)
cyg-apt2 setup
cyg-apt2 update





# Installing the handy-dandy toolbox
cyg-apt2 install openssh rsync screen vim emacs nano


Appendix A
Older methods of installing cyg-apt, which no longer work include:
# The original
# wget http://www.lilypond.org/~janneke/software/cyg-apt -o /usr/local/bin/cyg-apt

# chmod a+xr /usr/local/bin/cyg-apt
# cyg-apt2 --mirror=http://mirror.mcs.anl.gov/cygwin update
# cyg-apt setup
# A newer method
# wget http://cyg-apt.googlecode.com/files/cyg-apt-1.0.7-1.tar.bz2
# tar xf cyg-apt-1.0.7-1.tar.bz2
# cd cyg-apt-1.0.7-1
# ./install-cyg-apt.sh



Appendix B
http://www.saltycrane.com/blog/2007/11/cygwin-install-tips/

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

Links to this post:

Create a Link

<< Home