Possible Duplicate:
upgrading and installing packages through the cygwin command line?

I'm looking for a "yum"-link method to install additional Cygwin packages from the command-line. Let's say I want to add the package "Math/bc", then ideally I'd like to be able to do it using one command as in:

yum install bc

Currently the only way I've found to install new packages is to locate and run the installation file SETUP.EXE file and then scroll to the relevant package, add it, etc. This is quite cumbersome so I'm sure there is a smarter command-line way to add an additional package.

link|improve this question

1  
This is a dupe and has been asked yesterday: superuser.com/questions/40545/… – innaM Sep 14 '09 at 16:17
feedback

closed as exact duplicate by TheTXI Sep 14 '09 at 16:58

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

up vote 24 down vote accepted

The answer is:

wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg
chmod +x apt-cyg
mv apt-cyg /usr/local/bin/
apt-cyg install bc
link|improve this answer
Nice. (Of course, you wouldn't be able to install wget this way - nor chmod or mv :) Will this install dependencies as well? What effect does this have on subsequent uses of setup, i.e., your "local package directory", etc? – Chris Noe Sep 14 '09 at 16:47
Chris: Yes, dependencies are handled automatically. I believe the script uses the same install mechanism as SETUP.EXE, so if that is correct then there should be no mismatch. – knorv Sep 14 '09 at 17:34
Huzzah!! Excellent tip.. – Fergal Moran Jun 1 '11 at 9:30
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.