- How To Add Cygwin Packages
- How To Install Makefile In Cygwin
- Add Packages To Cygwin After Install
- How To Install Make Rain Barrel
- How To Download Cygwin Packages
- 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.
- 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.
- @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++).
- 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.
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 Vlasov9 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.comThis 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
--no-startmenu Disable creation of start menu shortcut
--quiet-mode Unattended setup mode
An alternate solution would be to use the apt-cyg
script available on GitHub.
The location for Cygwin's setup seems to have changes and split. Now you need either
or
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
.
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.
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
How To Add Cygwin Packages
How To Install Makefile In Cygwin
Unattended upgrade
Meaning:
Add Packages To Cygwin After Install
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: