Downloads:
889,372
Downloads of v 20240727.0.0:
28,204
Last Update:
27 Jul 2024
Package Maintainer(s):
Software Author(s):
- Alexpux
- martell
- mingwandroid
- elieux
- renatosilva
- niXman
Tags:
msys2 msys cygwin mingw gnu linux unix posix arch pacman bash makepkg gcc shell cli foss development- Software Specific:
- Software Site
- Software Source
- Software License
- Software Docs
- Package Specific:
- Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
MSYS2
- 1
- 2
- 3
20240727.0.0 | Updated: 27 Jul 2024
- Software Specific:
- Software Site
- Software Source
- Software License
- Software Docs
- Package Specific:
- Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
Downloads:
889,372
Downloads of v 20240727.0.0:
28,204
Maintainer(s):
Software Author(s):
- Alexpux
- martell
- mingwandroid
- elieux
- renatosilva
- niXman
MSYS2 20240727.0.0
Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Alexpux, martell, mingwandroid, elieux, renatosilva, niXman. The inclusion of Alexpux, martell, mingwandroid, elieux, renatosilva, niXman trademark(s), if any, upon this webpage is solely to identify Alexpux, martell, mingwandroid, elieux, renatosilva, niXman goods or services and not for commercial purposes.
- 1
- 2
- 3
All Checks are Passing
3 Passing Tests
Deployment Method: Individual Install, Upgrade, & Uninstall
To install MSYS2, run the following command from the command line or from PowerShell:
To upgrade MSYS2, run the following command from the command line or from PowerShell:
To uninstall MSYS2, run the following command from the command line or from PowerShell:
Deployment Method:
This applies to both open source and commercial editions of Chocolatey.
1. Enter Your Internal Repository Url
(this should look similar to https://community.chocolatey.org/api/v2/)
2. Setup Your Environment
1. Ensure you are set for organizational deployment
Please see the organizational deployment guide
2. Get the package into your environment
Option 1: Cached Package (Unreliable, Requires Internet - Same As Community)-
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://community.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
-
Open Source
-
Download the package:
Download - Follow manual internalization instructions
-
-
Package Internalizer (C4B)
-
Run: (additional options)
choco download msys2 --internalize --source=https://community.chocolatey.org/api/v2/
-
For package and dependencies run:
choco push --source="'INTERNAL REPO URL'"
- Automate package internalization
-
Run: (additional options)
3. Copy Your Script
choco upgrade msys2 -y --source="'INTERNAL REPO 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 msys2 -y --source="'INTERNAL REPO URL'"
$exitCode = $LASTEXITCODE
Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
Exit 0
}
Exit $exitCode
- name: Install msys2
win_chocolatey:
name: msys2
version: '20240727.0.0'
source: INTERNAL REPO URL
state: present
See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.
chocolatey_package 'msys2' do
action :install
source 'INTERNAL REPO URL'
version '20240727.0.0'
end
See docs at https://docs.chef.io/resource_chocolatey_package.html.
cChocoPackageInstaller msys2
{
Name = "msys2"
Version = "20240727.0.0"
Source = "INTERNAL REPO URL"
}
Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.
package { 'msys2':
ensure => '20240727.0.0',
provider => 'chocolatey',
source => 'INTERNAL REPO URL',
}
Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.
4. If applicable - Chocolatey configuration/installation
See infrastructure management matrix for Chocolatey configuration elements and examples.
There are versions of this package awaiting moderation . See the Version History section below.
This package was approved as a trusted package on 05 Nov 2024.
MSYS2 is a software distro and building platform for Windows.
At its core is an independent rewrite of MSYS, based on modern Cygwin (POSIX compatibility layer) and MinGW-w64 with the aim of better interoperability with native Windows software. It provides a bash shell, Autotools, revision control systems and the like for building native Windows applications using MinGW-w64 toolchains.
It features a package management system to provide easy installation of packages, Pacman. It brings many powerful features such as dependency resolution and simple complete system upgrades, as well as straight-forward package building.
Ruby integration
This package can be used with ruby package to provide native building environment for gems.
- The ruby installer comes with
ridk
function which offers interactive GUI installation wizard of msys2 and hence can't be used unattended (ridk install 1
). - Its system update is the same as initialization done with this package (
ridk install 2
). - Ruby installer offers unattended setup of MSYS2 and MINGW development toolchain (
ridk install 3
).
You can also just install the msys2 package without system update and use ridk
afterwards:
cinst ruby # install ruby
cinst msys2 --params "/NoUpdate" # install msys2 without system update
Update-SessionEnvironment # refresh environment vars
ridk install 2 3 # use ruby's ridk to update the system and install development toolchain
Package parameters
/InstallDir
- Path to installation directory, by default msys will be installed inGet-ToolsLocation
./NoPath
- Do not add msys installation directory to system PATH./NoUpdate
- Do not automatically update with Pacman according to the official instructions.
Example: choco install msys2 --params "/NoUpdate /InstallDir:C:\your\install\path"
Notes
- MSYS2 itself will not be installed again on updating or reinstalling the Chocolatey package. Instead, the existing MSYS2 will be updated with Pacman. Manually delete the installation folder to force complete reinstallation.
- If the package is out of date please check Version History for the latest submitted version. If you have a question, please ask it in Chocolatey Community Package Discussions or raise an issue on the Chocolatey Community Packages Repository if you have problems with the package. Disqus comments will generally not be responded to.
Copyright (c) 2013, Алексей
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* Neither the name of the {organization} nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.
Package can be verified like this:
1. Go to
x64: https://github.com/msys2/msys2-installer/releases/download/2024-07-27/msys2-base-x86_64-20240727.tar.xz
to download the installer.
2. You can use one of the following methods to obtain the SHA256 checksum:
- Use powershell function 'Get-FileHash'
- Use Chocolatey utility 'checksum.exe'
checksum64: DA19AFCC9B635967B3BFC0DB119BF848ED6C28FDDE8E4678D9F838D678939060
File 'LICENSE.txt' is obtained from:
https://raw.githubusercontent.com/Alexpux/MSYS2-packages/master/LICENSE
File 'COPYING' is obtained from:
https://github.com/Alexpux/MSYS2-pacman/blob/master/COPYING
$ErrorActionPreference = 'Stop'
$toolsDir = Split-Path $MyInvocation.MyCommand.Definition
$pp = Import-Clixml $toolsDir\pp.xml
if (!$pp.NoPath) {
$user_path = [System.Environment]::GetEnvironmentVariable('PATH', 'User')
$newPath = $user_path.Replace(";" + $pp.InstallDir, '')
if ($newPath -ne $user_path) {
Write-Host "Removing from user PATH"
[System.Environment]::SetEnvironmentVariable('PATH', $newPath, 'User')
}
}
Write-Host "Please remove install dir manually when you don't need it anymore."
Write-Host "Install dir: " $pp.InstallDir
$pp = Get-PackageParameters
$is64 = (Get-OSArchitectureWidth 64) -and $env:chocolateyForceX86 -ne 'true'
$dir_name = if ($is64) { 'msys64' } else { 'msys32' }
if (!$pp.InstallDir) { $pp.InstallDir = "{0}\{1}" -f (Get-ToolsLocation), $dir_name }
$pp | Export-Clixml $toolsPath\pp.xml
$InstallPath = $pp.InstallDir
function Invoke-Msys2Shell($Arguments) {
if (![string]::IsNullOrWhiteSpace($Arguments)) { $Arguments += "; " }
$Arguments += "ps -ef | grep '[?]' | awk '{print `$2}' | xargs -r kill"
$params = @{
FilePath = Join-Path $InstallPath msys2_shell.cmd
NoNewWindow = $true
Wait = $true
ArgumentList = "-defterm", "-no-start", "-c", "`"$Arguments`""
}
Write-Host "Invoking msys2 shell command:" $params.ArgumentList
Start-Process @params
}
# For full expected output see https://gist.github.com/majkinetor/bd5e9aa8ee6c1f55513cc67b02289fa6
function Invoke-Msys2ShellFirstRun {
Write-Host "Invoking first run to setup things like bash profile, gpg etc..."
Invoke-Msys2Shell
}
function Update-MSys2 {
if ($pp.NoUpdate) {
Write-Host "Skipping updates due to the 'NoUpdate' option"
return
}
$logPath = Join-Path $InstallPath update.log
$stopSentence = 'there is nothing to do'
$cntSentence = 2
$shellArgs = "pacman --noconfirm -Syuu --disable-download-timeout | tee -a /update.log"
$max = 5
Write-Host "Repeating system update until there are no more updates or max $max iterations"
Write-Host "Output is recorded in: $logPath"
Remove-Item $logPath -ea 0
$ErrorActionPreference = 'Continue' #otherwise bash warnings will exit
while (!$done) {
Write-Host "`n================= SYSTEM UPDATE $((++$i)) =================`n"
Invoke-Msys2Shell $shellArgs
$done = (Get-Content $logPath) -match $stopSentence | Measure-Object | ForEach-Object { $_.Count -ge $cntSentence }
$done = $done -or ($i -ge $max)
}
}
# requires $pp.InstallDir & toolsPath in upper scope
function Install-Msys2 {
if (Test-Path $InstallPath) {
Write-Host "'$InstallPath' already exists and will only be updated."
return
}
Write-Host "Installing to:" $InstallPath
$packageArgs = @{
PackageName = $Env:ChocolateyPackageName
FileFullPath = Get-Item $ToolsPath\*-i686*
FileFullPath64 = Get-Item $ToolsPath\*-x86_64*
Destination = $InstallPath
}
Get-ChocolateyUnzip @packageArgs
Remove-Item $ToolsPath\*.xz -ea 0
$tarFile = Get-Item "$InstallPath\*.tar"
Get-ChocolateyUnzip $tarFile $InstallPath
Remove-Item "$InstallPath\*.tar" -ea 0
$tardir = Get-Item "$InstallPath\msys*"
if ([String]::IsNullOrWhiteSpace($tardir)) { throw "Can't find msys* directory from tar archive" }
Move-Item $tardir\* $InstallPath
Remove-Item $tardir
}
function Set-Msys2Proxy {
$proxy = Get-EffectiveProxy
if (!$proxy) { return }
Write-Host "Using CLI proxy:" $proxy
$Env:http_proxy = $Env:https_proxy = $proxy
}
md5: 909E6F202CDF6619C365115740BA4F5D | sha1: 183D8AEF4620370F52B2E1A6F3F1DDA4EAE48892 | sha256: DA19AFCC9B635967B3BFC0DB119BF848ED6C28FDDE8E4678D9F838D678939060 | sha512: 44E4471C3732A62E9A2D0D268A6DB3C90066686EFE0E5BF76A5E9F39C0866C49DC0204EFCFDDE139431FE0B20197A3AD79891667A0B422EC93A363E611462F85
Log in or click on link to see number of positives.
- msys2.20240727.0.0.nupkg (ef12495c0343) - ## / 52
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.
Add to Builder | Version | Downloads | Last Updated | Status |
---|---|---|---|---|
MSYS2 20241116.0.0 | 9 | Saturday, November 16, 2024 |
Waiting for Maintainer
|
|
MSYS2 20240727.0.0 | 28204 | Saturday, July 27, 2024 | Approved | |
MSYS2 20240507.0.0 | 18187 | Tuesday, May 7, 2024 | Approved | |
MSYS2 20240113.0.0 | 27486 | Saturday, January 13, 2024 | Approved | |
MSYS2 20231026.0.0 | 15961 | Thursday, October 26, 2023 | Approved | |
MSYS2 20230718.0.0 | 23674 | Tuesday, July 18, 2023 | Approved | |
MSYS2 20230526.0.0 | 15995 | Friday, May 26, 2023 | Approved | |
MSYS2 20230318.0.0 | 23113 | Saturday, March 18, 2023 | Approved | |
MSYS2 20230127.0.0 | 13642 | Friday, January 27, 2023 | Approved | |
MSYS2 20221216.0.0 | 10459 | Friday, December 16, 2022 | Approved | |
MSYS2 20220904.0.0 | 29942 | Sunday, September 4, 2022 | Approved | |
MSYS2 20220603.0.0 | 21064 | Friday, June 3, 2022 | Approved | |
MSYS2 20220503.0.0 | 9700 | Tuesday, May 3, 2022 | Approved | |
MSYS2 20220319.0.0 | 15081 | Saturday, March 19, 2022 | Approved | |
MSYS2 20220128.0.0 | 18264 | Friday, January 28, 2022 | Approved | |
MSYS2 20220118.0.0 | 5617 | Wednesday, January 19, 2022 | Approved | |
MSYS2 20211130.0.0 | 35699 | Wednesday, December 1, 2021 | Approved | |
MSYS2 20210604.0.0 | 80283 | Sunday, June 6, 2021 | Approved | |
MSYS2 20210419.0.0 | 23299 | Monday, April 19, 2021 | Approved | |
MSYS2 20210228.0.0 | 11974 | Sunday, February 28, 2021 | Approved | |
MSYS2 20210215.0.0 | 29717 | Tuesday, February 16, 2021 | Approved | |
MSYS2 20210105.0.0 | 24453 | Wednesday, January 6, 2021 | Approved | |
MSYS2 20201109.0.0 | 22814 | Saturday, November 14, 2020 | Approved | |
MSYS2 20200903.0.0 | 75791 | Friday, September 4, 2020 | Approved | |
MSYS2 20200816.0.0 | 11332 | Sunday, August 16, 2020 | Approved | |
MSYS2 20200720.0.0 | 12902 | Tuesday, July 21, 2020 | Approved | |
MSYS2 20200719.0.0 | 1184 | Sunday, July 19, 2020 | Approved | |
MSYS2 20200629.0.0 | 8459 | Tuesday, June 30, 2020 | Approved | |
MSYS2 20200602.0.0 | 14725 | Wednesday, June 3, 2020 | Approved | |
MSYS2 20200522.0.0 | 7226 | Sunday, May 24, 2020 | Approved | |
MSYS2 20190524.0.0.20191030 | 87281 | Wednesday, October 30, 2019 | Approved | |
MSYS2 20180531.0.0 | 114349 | Friday, June 1, 2018 | Approved | |
MSYS2 20161025.0.0 | 8336 | Monday, November 6, 2017 | Approved | |
MSYS2 20160719.1.1 | 38733 | Wednesday, October 12, 2016 | Approved | |
MSYS2 20160719.1.0 | 816 | Monday, October 10, 2016 | Approved | |
MSYS2 20150916.0.1 | 2516 | Sunday, November 22, 2015 | Approved | |
MSYS2 20150916.0.0 | 514 | Sunday, September 27, 2015 | Approved |
MSYS2 Copyright (c) 2013, Алексей
-
- chocolatey-core.extension (≥ 1.3.3)
Ground Rules:
- This discussion is only about MSYS2 and the MSYS2 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 MSYS2, 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.