This is not the latest version of Cygwin available.

2.6.1 | Updated: 11 Jan 2017



Downloads of v 2.6.1:


Software Author(s):

  • Red Hat
  • Inc.

Cygwin 2.6.1

This is not the latest version of Cygwin available.

This Package Contains an Exempted Check

1 Test Passing and 1 Exempted Test

Validation Testing Passed

Verification Testing Exempt:

Please exempt this package from the verifier. It installs properly but there are other issues when it attempts to use mirrors.

To install Cygwin, run the following command from the command line or from PowerShell:


To upgrade Cygwin, run the following command from the command line or from PowerShell:


To uninstall Cygwin, run the following command from the command line or from PowerShell:


NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to

4. Choose your deployment method:

choco upgrade cygwin -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade cygwin -y --source="'STEP 3 URL'"

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Ensure cygwin installed
    name: cygwin
    state: present
    version: 2.6.1
    source: STEP 3 URL

See docs at

Coming early 2020! Central Managment Reporting available now! More information...

chocolatey_package 'cygwin' do
  action    :install
  version  '2.6.1'
  source   'STEP 3 URL'

See docs at

    Name: cygwin,
    Version: 2.6.1,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller cygwin
   Name     = 'cygwin'
   Ensure   = 'Present'
   Version  = '2.6.1'
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'cygwin':
  provider => 'chocolatey',
  ensure   => '2.6.1',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install cygwin version="2.6.1" source="STEP 3 URL"

See docs at

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 11 Jan 2017.


Cygwin is a collection of tools which provide a Linux look and feel environment for Windows. Cygwin is also a DLL (cygwin1.dll) which acts as a Linux API layer providing substantial Linux API functionality.

Package parameters

  • InstallDir - Set install location
  • DesktopIcon - Set to true to install desktop icon
  • Proxy - Set to "proxy:port". Otherwise system proxy or explicit chocolatey proxy will be used
  • Pubkey - URL of extra public key file (gpg format)
  • Site - Download site
  • NoStartMenu - Set to true to prevent installation of start menu items
  • NoAdmin - Do not check for and enforce running as administrator


  • This package provides only the last version of Cygwin.
  • For better functionality, it is recommended you install the cyg-get package. Use the cyg-get utility to add packages to your Cygwin installation.


$ErrorActionPreference = 'Stop'

$pp = Get-PackageParameters

$cygwin_root = (Get-ItemProperty 'HKLM:\SOFTWARE\Cygwin\setup' -ea 0).rootdir
if (!$cygwin_root) {
    $cygwin_root = if ($pp.InstallDir) { $pp.InstallDir } else { (Get-BinRoot) + '\cygwin' }
} else { Write-Host 'Existing installation detected, ignoring InstallDir argument' }

if (!$pp.Proxy) {
    $pp.Proxy = $Env:ChocolateyProxyLocation
    if (!$pp.Proxy) {
        $wc = New-Object System.Net.WebClient; $url = ''
        $pp.Proxy = if (!$wc.Proxy.IsBypassed($url)) { $wc.Proxy.GetProxy($url).Authority }

if (!$pp.Site) { $pp.Site = '' }
Write-Host "Download site: $($pp.Site)"

$silentArgs = @(
    "--site $($pp.Site)"
    '--packages default'
    "--root $cygwin_root"
    "--local-package-dir $cygwin_root"

    if (!$pp.DesktopIcon) { '--no-desktop' } else {  Write-Host 'Desktop icon will be created' }
    if ($pp.NoStartMenu)  { '--no-startmenu';        Write-Host 'No start menu items will be created' }
    if ($pp.Proxy)        { "--proxy $($pp.Proxy)";  Write-Host "Using proxy: $($pp.Proxy)" }
    if ($pp.Pubkey)       { "--pubkey $($pp.Pubkey)";Write-Host "URL of extra public key file is provided" }
    if ($pp.NoAdmin)      { '--no-admin';            Write-Host "Do not require running as administrator" }

$packageArgs = @{
  packageName            = 'Cygwin'
  fileType               = 'exe'
  url                    = ''
  url64bit               = ''
  checksum               = '406bfa31d0c724de90aced5edddaf07f3eac46220c9cc9998ae2428d13989c28'
  checksum64             = 'b67afe083b2547acee0857b45ff9784f873d1fb226a0148c1364f255180fc282'
  checksumType           = 'sha256'
  checksumType64         = 'sha256'
  silentArgs             = $silentArgs
  validExitCodes         = @(0)
Install-ChocolateyPackage @packageArgs
Install-BinFile -Name "Cygwin" -Path "$cygwin_root\Cygwin.bat"

Write-Host "Copying cygwin package manager (setup) to $cygwin_root"
$setup_path = if (Get-ProcessorBits 64) { $packageArgs.url64bit } else { $packageArgs.url }
$setup_path = "{0}\{1}" -f (Get-PackageCacheLocation), ($setup_path -split '/' | select -Last 1)
if (!$setup_path)  { Write-Warning "Can't find setup path"; return }
cp $setup_path $cygwin_root\cygwinsetup.exe
$ErrorActionPreference = 'Stop'

$cygwin_root = (Get-ItemProperty 'HKLM:\SOFTWARE\Cygwin\setup' -ea 0).rootdir
rm 'HKLM:\SOFTWARE\Cygwin' -Recurse -ErrorAction SilentlyContinue
if (Test-Path "$cygwin_root\Cygwin.bat") {
    Write-Host 'Removing cygwin files'
    rm $cygwin_root -recurse -force -ea 0

Uninstall-BinFile -Name Cygwin

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
Cygwin 3.1.5 47372 Monday, June 1, 2020 Approved
Cygwin 3.1.4 117445 Wednesday, February 19, 2020 Approved
Cygwin 3.1.2 60848 Saturday, December 21, 2019 Approved
Cygwin 3.1.1 3450 Thursday, December 19, 2019 Approved
Cygwin 3.1.0 2718 Tuesday, December 17, 2019 Approved
Cygwin 58263 Tuesday, October 22, 2019 Approved
Cygwin 3.0.7 118234 Wednesday, May 1, 2019 Approved
Cygwin 3.0.6 20656 Saturday, April 6, 2019 Approved
Cygwin 3.0.5 6615 Sunday, March 31, 2019 Approved
Discussion for the Cygwin Package

Ground Rules:

  • This discussion is only about Cygwin and the Cygwin package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Cygwin, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus