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.

  • 1
    This is a dupe and has been asked yesterday: superuser.com/questions/40545/…
    – innaM
    Sep 14, 2009 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, 2015 at 23:56

1 Answer 1

lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
install apt-cyg /bin
apt-cyg install bc
  • 5
    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, 2009 at 16:47
  • 1
    Any alternatives if neither wget nor curl are not installed? Sep 13, 2012 at 20:58
  • 2
    This is so awesome I've been looking for this my entire life
    – ardiyu07
    May 15, 2013 at 13:28
  • 1
    @chovy: you get wget on the machine by running the setup again and selecting wget May 4, 2014 at 14:26
  • 2
    @jeremytwfortune - "how hard is it to just run the setup again?" - that's actually a very good UX question. sudo <pkg mgr> install <package> is one step and the process is complete. I deleted setup after installation (setup was complete), so I have to download it again, click through screens, search, select, click through some more screens. That's about six steps. From a UX standpoint, which do you think is better?
    – jww
    Jul 11, 2015 at 0:29

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