40

To install additional packages for Cygwin, do I just need to run the setup.exe again and choose from the packages list?

Also, doing this won't harm my computer in terms of 2 Cygwin instances being installed or problems of that kind (I'm kind of a noobie with these things).

Last, there is no package manager in Cygwin which you can run in the command line? Something similar to Pip in Python.

Lii
  • 11,553
  • 8
  • 64
  • 88
osse
  • 1,533
  • 5
  • 18
  • 25
  • first two yes, last one not sure(I think you could add one if you'd like). I also don't think this is on-topic. – CBIII Jul 24 '13 at 04:06
  • @Clyde, I'd go the "software tools commonly used by programmers" route in terms of being on-topic. While you can certainly use the non-programming parts of CygWin (like X), I would say the vast majority of use (well, my use anyway) is of the programming type tools (awk, sed, grep, bash scripts, etc). – paxdiablo Jul 24 '13 at 04:09
  • yep, you're right; I meant to say "not sure", but what's done is done. – CBIII Jul 24 '13 at 04:20
  • 1
    You are supposed to use the `setup.exe` method (now in two flavours for 32 and 64 bit installs) - specifically because Windows make it impossible to update `.dlls` that are in use. It includes code to detect this and warn if that is attempted (as a reboot may become necessary to get around it) - and this also makes changing packages (particularly updating or removing them) unsafe/impossible from within a running Cygwin sub-system...! – SlySven Apr 07 '17 at 18:52

6 Answers6

35

No, adding additional packages doesn’t modify the current settings. There is a package manager called apt-cyg which installes additional packages from command-line. To install apt-cyg follow the below steps:

wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /bin

Note: wget should be installed for downloading the apt-cyg. To Use apt-cyg for installing additional package (after following the above steps):

apt-cyg install ncurses
balajivijayan
  • 849
  • 9
  • 11
28

No, it doesn't hurt the current setup. The install program knows what's installed already.

Having said that, I long ago got into the habit of installing all of Cygwin since, despite its size, it's still minuscule compared to the size of modern hard disks. That way, you won't ever have to worry about whether a package is installed or not.

Lii
  • 11,553
  • 8
  • 64
  • 88
paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953
  • thanks. did just that (install all of them) and good thing too since 3 of the packages i needed but cant find were obsolete (didnt ticked the show obsolete packages box) but were considered dependencies for some of the packages so they got installed in the end. – osse Jul 24 '13 at 04:23
  • 22
    Just a note to this, I followed your advice and installed everything. It works good but took 24 hours on my 70Megabit connection and resulted in a 22GB folder with 500k files. Just a word of warning to people who think it's a quick install! – georgiecasey Apr 17 '14 at 19:19
  • 3
    @georgie: yes, it's not a fast process. I tend to separate the download from install, downloading once a year to a flash drive and then using that to install everywhere I need it. – paxdiablo Dec 30 '14 at 06:44
11

Re-run the setup executable like "cygwin_setup-x86_64.exe" should do it.

  1. "Install from Internet"
  2. Accept your existing root directory (from your existing installation)
  3. Use your existing "Local Package Directory"
  4. On the screen, view "Full"
  5. Search for the new package you want to add
  6. Go through the installation
david m lee
  • 2,547
  • 26
  • 14
9

Additional option, may be helpful for someone:

To install additional packages in windows from windows command line you can use your cygwin installer.
I suppose, you've already downloaded it to install cygwin from here https://cygwin.com/install.html.

$ setup-x86_64.exe -q -P graphviz

see this guide for details: http://preshing.com/20141108/how-to-install-the-latest-gcc-on-windows/

Viacheslav Shalamov
  • 4,149
  • 6
  • 44
  • 66
0

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 than what you already have.

So if you want new packages just rerun the setup program to install packages.

Archit Pandey
  • 167
  • 1
  • 7
0

You can just look for the package binaries and decompress them in the C:\cygwin\bin folder. I did that for dos2unix ( https://cygwin.com/packages/summary/dos2unix.html ) and trying it out now.

Paulina D.
  • 380
  • 3
  • 14