Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:… – innaM Sep 14 '09 at 16:17
@innaM - all the duplicates indicate Cygwin needs to provide a package manager. Unsuspecting users like me take it for granted one is available and installed. I think its the only modern Unix and Linux distro without one... – jww Jun 30 '15 at 23:56
up vote 64 down vote accepted
lynx -source > apt-cyg
install apt-cyg /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
This is so awesome I've been looking for this my entire life – ardiyu07 May 15 '13 at 13:28
@chovy: you get wget on the machine by running the setup again and selecting wget – doublehelix May 4 '14 at 14:26

Not the answer you're looking for? Browse other questions tagged .