Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

1 Answer 1

up vote 60 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
share|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
Awesome answer! Thanks a lot! –  Piotr Sobczyk Jul 20 '12 at 7:48
Any alternatives if neither wget nor curl are not installed? –  Erik Allik Sep 13 '12 at 20:58
how do i get wget on the machine? –  chovy Mar 6 '13 at 21:15
This is so awesome I've been looking for this my entire life –  ardiyu07 May 15 '13 at 13:28

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