Downloads:

622,542

Downloads of v 2.6.0.20161202:

3,790

Last Update:

12/2/2016

Package Maintainer(s):

Software Author(s):

  • Red Hat
  • Inc.

Tags:

Cygwin foss cli unix posix linux admin

Cygwin

This is not the latest version of Cygwin available.

2.6.0.20161202 | Updated: 12/2/2016

Downloads:

622,542

Downloads of v 2.6.0.20161202:

3,790

Software Author(s):

  • Red Hat
  • Inc.

Cygwin 2.6.0.20161202

This is not the latest version of Cygwin available.

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

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 https://chocolatey.org/api/v2. 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 https://chocolatey.org/api/v2)

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'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

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

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

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


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

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: cygwin,
    Version: 2.6.0.20161202,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller cygwin
{
   Name     = 'cygwin'
   Ensure   = 'Present'
   Version  = '2.6.0.20161202'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


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

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


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

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

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 12/2/2016.

Description

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

Notes

  • Tnis 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.

tools\chocolateyInstall.ps1
# https://cygwin.com/faq/faq.html#faq.setup.cli

$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 = 'https://cygwin.com'
        $pp.Proxy = if (!$wc.Proxy.IsBypassed($url)) { $wc.Proxy.GetProxy($url).Authority }
    }
}

if (!$pp.Site) { $pp.Site = 'http://mirrors.kernel.org/sourceware/cygwin/' }
Write-Host "Download site: $($pp.Site)"

$silentArgs = @(
    '--quiet-mode'
    "--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" }
)

$packageArgs = @{
  packageName            = 'Cygwin'
  fileType               = 'exe'
  url                    = 'https://cygwin.com/setup-x86.exe'
  url64bit               = 'https://cygwin.com/setup-x86_64.exe'
  checksum               = '5540542d7fa1d1f13453e7a250c1c6de44a6a794e81ffde0dfea6b5689dbc052'
  checksum64             = '446b658bc1b8b6c7865474188cb4d7e9873003e2b6a9d74dcdfb7a3ff77e8634'
  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
tools\chocolateyUninstall.ps1
$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

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.0.6 20437 Saturday, April 6, 2019 Approved
Cygwin 3.0.5 6551 Sunday, March 31, 2019 Approved
Cygwin 3.0.4 12460 Saturday, March 16, 2019 Approved
Cygwin 3.0.3 6255 Sunday, March 10, 2019 Approved
Cygwin 3.0.1 13597 Wednesday, February 20, 2019 Approved
Cygwin 3.0.0 3846 Saturday, February 16, 2019 Approved
Cygwin 2.11.2.20181212 37176 Wednesday, December 12, 2018 Approved
Cygwin 2.11.2 18717 Saturday, November 10, 2018 Approved
Cygwin 2.11.0 48185 Friday, August 31, 2018 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