cyg-apt is like apt and makes installing cygwin packages a lot more friendly. I’ve always disliked the clunky setup program that comes with cygwin so this is a really nice improvement.
assuming you have cygwin, wget and python installed
cd /bin
wget http://www.lilypond.org/~janneke/software/cyg-apt
chmod a+rx cyg-apt
cyg-apt setup
cyg-apt update
for more detailed instructions see cygwin-setup
September 23, 2006 at 4:20 pm |
Hello , the mirror this is linked to is not working when using cyg-apt setup :=)
September 23, 2006 at 4:24 pm |
What i mean is :D
official_mirror = ‘http://gnu.kookel.org/ftp/cygwin’
is not working, just getting a timeout.. so this is NOT usefull :/
September 25, 2006 at 12:10 pm |
Change the mirror that cyg-apt is using with “–mirror” argument
cyg-apt --mirror=http://mirror.mcs.anl.gov/cygwin update
September 26, 2006 at 6:52 pm |
donc : Thanks alot..
October 19, 2006 at 1:14 pm |
the cygwin-setup page referenced have stripped out all references to cyg-apt, with no word as to why. The google cache, http://tinyurl.com/v5u4q, is still (at the time of this writing) at one of the mirrors but gone from the main jessies.org cygwin setup page.
excerpt:
————
Now install cyg-apt(1), a useful imitation of apt-get(1) which sadly isn’t itself packaged:
wget http://www.lilypond.org/~janneke/software/cyg-apt
chmod a+rx cyg-apt
mv cyg-apt /bin
cyg-apt setup
cyg-apt update
———-
there’s another link for cyg-apt at http://www.xs4all.nl/~jantien/software/cyg-apt but does not appear as up to date as the lilypond one.
October 21, 2006 at 6:29 am |
$ cyg-apt –mirror=http://mirror.mcs.anl.gov/cygwin update
Traceback (most recent call last):
File “/usr/bin/cyg-apt”, line 127, in ?
k, v = i.split (‘=’, 2)
ValueError: too many values to unpack
October 21, 2006 at 10:10 pm |
the mirror argument needs 2 dashes “–mirror”
the problem is that “-m” is a shortcut for –mirror
your mirror got set to “irror=http://mirror.mcs.anl.gov/cygwin”
now cyg-apt can’t parse the config file since mirror contains “=”
edit ~/.cyg-apt and change
mirror=”irror=http://mirror.mcs.anl.gov/cygwin”
to
mirror=”http://mirror.mcs.anl.gov/cygwin”
June 28, 2007 at 4:18 pm |
The explination above seems to work as of 6/2007 if anyone interested
May 27, 2008 at 11:48 am |
Hi!
I’ve followed your instructions, but I got this “cyg-apt setup” error:
error: /cygwin no root dir
I suppose this is because I installed Cygwin in other path than “c:\cygwin”.
If so, is there any workaround I can use to put it to work?
Thanks in advance,
Yorga.
June 8, 2008 at 4:31 am |
Hi Yorga,
Try this:
cyg-apt setup
cyg-apt update
It worked for me.
Etienne
July 24, 2008 at 12:30 pm |
Yorga,
I got the same error as you. “error: /cygwin no root dir”
I just went ahead and created the directory and all works well:
mkdir /cygwin makes the directory “C:\cygwin\cygwin” to put all the cached information
you can also change the line 25:
root = ‘/cygwin’
to where ever you would like the cached packages to be placed.
September 1, 2008 at 7:28 pm |
Thank you all for your posts. When I saw the “no root dir” error message I went ahead, like Xuru did, and I created a directory called “root”. It didn’t help at all.
Mariane
November 29, 2008 at 2:04 am |
to fix the no root dir do
mkdir /cygwin
March 4, 2009 at 9:20 am |
[...] http://donc.wordpress.com/2006/08/04/apt-for-cygwin/ [...]
March 4, 2009 at 9:42 am |
There’s also http://stephenjungels.com/jungels.net/projects/apt-cyg/ which looks a little more recent
April 3, 2009 at 2:49 am |
apt-cyg is great.
I can’t run cyg-apt in my cygwin, but apt-cyg is fine, and stable. thanks to Stephen Jungels.