How To Install Make Package In Cygwin

Posted on  by 

  1. How To Add Cygwin Packages
  2. How To Install Makefile In Cygwin
  3. Add Packages To Cygwin After Install
  4. How To Install Make Rain Barrel
  5. How To Download Cygwin Packages
  1. Installing and Updating Cygwin for 64-bit versions of Windows. Run setup-x86_64.exe any time you want to update or install a Cygwin package for 64-bit windows. The signature for setup-x86_64.exe can be used to verify the validity of this binary using this public key.
  2. Cygwin don’t support command yum for install a new package. But we can use apt-cyg to install a new package on within Cygwin. Apt-cyg is a Cygwin package manager. It includes a command-line installer for Cygwin which cooperates with Cygwin Setup and uses the same repository. Step 1: install apt-cyg.
  3. @spacediver is right on. Run cygwin's setup.exe again and when you get to the packages screen make sure you select make and python (and any other libs/apps you may need - perhaps gcc or g++).
  4. When you get to the screen that lets you select packages to install, find make and select it (it's probably under 'Development' or something similar). Then you'll be able to run make from the Cygwin.
Active1 year, 5 months ago

I know im supposed to run the setup again to install new packages but when i do (im trying to install the gcc and make package) it doesn't install it and when i go to use cygwin i still can use the the make command for example.

To search and download a package missed from Cygwin I need to run setup.exe GUI each time, click many times and do other boring things.

Is there a way to do the same from Cygwin's command line directly? Like apt-get tools do.

Pavel VlasovPavel Vlasov
8231 gold badge11 silver badges21 bronze badges

9 Answers

Take a look here:

Aside from the other things, it gives the following list of options to setup.exe:

So setup.exe -P <package name> should do the job. Don't have cygwin right here, so test it to confirm it works as expected.

To search for a package, per:

you can use cygcheck -p:

which produces output like (example from above site):

icyrock.comicyrock.com
4,4981 gold badge25 silver badges26 bronze badges

This performs an unattended upgrade of all cygwin components

You should reboot after the upgrade is completed to prevent cygwin apps from misbehaving due to upgraded cygwin1.dll

--no-desktop Disable creation of desktop shortcut

--no-shortcuts Disable creation of desktop and start menu

How

--no-startmenu Disable creation of start menu shortcut

--quiet-mode Unattended setup mode

JohnnyJohnny

An alternate solution would be to use the apt-cyg script available on GitHub.

Chris CharabarukChris Charabaruk

The location for Cygwin's setup seems to have changes and split. Now you need either

or

Skip HuffmanSkip Huffman

The installer allows it from command line (elevated shell, please):

for 64 bits version:

Details:

  • Replace c:cygwin with your CygWin's root installation directory.
  • Suggested to close any CygWin shell or program (i.e: net stop sshd if you installed OpenSSH).
  • The parameter -q is not mandatory.

Works via GUI (DOS shell) or even on remote console (SSH or telnet). Not tested on PowerShell (someone did?).

Example of correct updating output:

If, during update, you had issues like these:

or:

or:

...then you must rebase after installation:

1.- Close all CygWin shell, programs and services.
2.- Open c:CygWinbinash.exe as admin (elevated).
3.- Run /bin/rebaseall.

Community
Sopalajo de ArrierezSopalajo de Arrierez
4,1549 gold badges44 silver badges83 bronze badges

I felt this need too a while ago. I used to just keep the installer file downloaded so I could just run it to install, but occasionally as Cygwin would be updated, the installer file would become out of date. I ended up creating a Powershell script that auto-elevates, downloads the installer, and runs an unattended upgrade. I have it sit on my desktop and can just right-click and 'Run with Powershell' and it will perform an in-place upgrade of all my Cygwin packages. The only user interaction needed is for UAC and a 'Press any key to continue' prompt at the very end. It can be run from the command-line as well, though, as it is just a script.

I have had the code up here for a while: http://pastebin.com/wMRctAuL

I copied it below. I wrote it with the help of a few StackOverflow Q&As as well. :) All you have to do to be able to run it is to enable local Powershell scripts on your machine. It's a complete, Windows-native solution.

Community
Ben RichardsBen Richards
10.9k9 gold badges46 silver badges70 bronze badges

Expanding on @Johnny's answer https://superuser.com/a/624731/110335

The annoyance I faced were occasion prompts that the .ini file is from a newer version of Cygwin's setup.exe

I wrote myself the following script to self-update, and then update all that needs to, noninteractively.

cygwinSetup64.cmd

Community
MarcosMarcos

How To Add Cygwin Packages

7011 gold badge7 silver badges15 bronze badges

How To Install Makefile In Cygwin

Unattended upgrade

Meaning:

Add Packages To Cygwin After Install

KIM TaegyoonKIM Taegyoon

How To Install Make Rain Barrel

Create a batch file such as 'cygwin-update.bat' with the following contents and put it in your path:

How To Download Cygwin Packages

Dean HouseholderDean Householder

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

Coments are closed