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.

I installed the latest version of Cygwin with a number of packages. I soon realised that I need more packages (such as wget, etc) and I couldn't find a way to install the new packages without running the set up again and reinstall everything from scratch.

What I'm looking for is the equivalent of apt-get on Cygwin (if such a thing exists).

share|improve this question

migrated from stackoverflow.com Jun 30 '11 at 15:14

This question came from our site for professional and enthusiast programmers.

    
related superuser.com/questions/40545/… –  Adrien Be Dec 11 '13 at 10:33

5 Answers 5

up vote 22 down vote accepted

There is no package management in Cygwin outside of the setup program. The setup only applies updates to your current installation, it does not overwrite packages that what you already have (unless you have explicitly said so).

So rerun the setup program to install new packages.

share|improve this answer

There is a package called apt-cyg that may be what you are looking for. It appears to be based upon apt-get.

apt-cyg is a command-line installer for Cygwin which cooperates with Cygwin Setup and uses the same repository. The syntax is similar to apt-get.

An example command would be

$ apt-cyg install yourPackage

To install it you need wget, tar, gawk, and bzip2. You can download all these packages from the Cygwin packages list.

share|improve this answer
    
how do you install apt-cyg once you have downloaded wget, tar, gawk, and bzip2? thx –  Adrien Be Dec 11 '13 at 10:22
1  
answering my own question: superuser.com/a/41139/280964 –  Adrien Be Dec 11 '13 at 10:42
    
This should be preinstalled with cygwin. its so amazing –  Sameer Alibhai Aug 9 at 19:25

Re-run the setup program again. This is how you update Cygwin as well.

share|improve this answer
1  
thx, for those in doubt: it does not reinstall everything, it simply install the new packages that you select –  Adrien Be Dec 11 '13 at 10:40

I was stuck with the same issue while trying to use curl on Windows and just got it resolved. Posting it here, now cause it might help someone.

The best way is to just use cygwin's setup.exe and select additional packages that you need. Go here: http://www.cygwin.com/install.html

"When installing packages for the first time, setup*.exe does not install every package. Only the minimal base packages from the Cygwin distribution are installed by default. Clicking on categories and packages in the setup*.exe package installation screen will provide you with the ability to control what is installed or updated."

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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