Update using terminal:

  1. Run the command prompt/terminal (cmd or sh).

  2. Update the package list:

    mingw-get update
    
  3. After updating the package list, run:

    mingw-get upgrade
    

When the command finishes running, all of your packages will be upgraded.


Update using the GUI version:

If you aren't used to the terminal, there is also a GUI version of MinGW called "MinGW Installation Manager", which is normally located at:

C:\MinGW\libexec\mingw-get\guimain.exe
  1. When the GUI is open, tap Installation -> Update Catalogue. This will update the package list.

  2. After that, tap Installation -> Mark All Upgrades. This will select all of the packages which can be upgraded.

  3. Finally, tap Installation -> Apply Changes to apply the upgrades.

Answer from Yuriy Petrovskiy on Stack Overflow
🌐
Reddit
reddit.com › r/cpp_questions › need help updating gcc/g++ from mingw
r/cpp_questions on Reddit: Need help updating GCC/G++ from MinGW
October 17, 2023 -

Hello, I installed the compilers about a month ago with MingGW, little did I know they were out of date, around version 6. I can't find a good tutorial on how to update them on windows so if someone could help me out that would be great.

🌐
GitHub
gist.github.com › alandsilva26 › 53cd2fecf253554c2f671766d3df5d66
Instructions for installing GCC Compiler on Windows · GitHub
Update packages and mirrors using pacman -Syu. ... Note: Keep pressing ENTER to select the default installation instructions. pacman -S --needed base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain \git subversion mercurial ...
🌐
Quora
quora.com › How-do-I-install-or-upgrade-the-GCC-compiler-on-Windows
How to install or upgrade the GCC compiler on Windows - Quora
Answer (1 of 4): GCC is GNU Compiler Collections, initially gcc was the GNU C Compiler. GCC provides many compilers: * gcc and g++ are two * * gcc is used to compile C program * g++ is used to compile C++ program From Free Software Foundation (FSF) * You can install any of the below for...
🌐
YouTube
youtube.com › deep bhuinya
Install the latest version of GCC on Windows to Write C,C++ Programs - YouTube
Install and Configure VS Code: https://youtu.be/-IYcXehhjVE
Published   September 12, 2021
Views   1K
🌐
DEV Community
dev.to › gamegods3 › how-to-install-gcc-in-windows-10-the-easier-way-422j
GCC for Windows: How to install gcc in Windows 10? (the easier way) - DEV Community
December 12, 2021 - Run the following commands to update the package database and core system packages: pacman -S mingw-w64-x86_64-toolchain This may take some time as it updates the system. ... After the update, install the GCC package using the following command: ...
🌐
Preshing
preshing.com › 20141108 › how-to-install-the-latest-gcc-on-windows
How to Install the Latest GCC on Windows
You can add them all in one fell swoop. Just open a Command Prompt (in Windows), navigate to the folder where the Cygwin installer is located, and run the following command: C:\cygwin64>setup-x86_64.exe -q -P wget -P gcc-g++ -P make -P diffutils -P libmpfr-devel -P libgmp-devel -P libmpc-devel
🌐
Super User
superuser.com › questions › 1242875 › how-do-you-change-versions-of-gcc-on-windows
mingw - How do you change versions of gcc on windows? - Super User
I've been using g++ 4.8.1, mingw. Now, I've just updated to 6.3.0, however when I use g++ in command prompt it still seems to use the older version. How do you change between versions on windows?
Find elsewhere
🌐
Solarian Programmer
solarianprogrammer.com › 2019 › 11 › 05 › install-gcc-windows
Install GCC 9 on Windows - Build C, C++ and Fortran programs | Solarian Programmer
After the above step, a command window, or a Terminal, should open. Write this in the MSYS Terminal: ... and write Y when asked if you want to proceed with the installation. This should update the base system.
🌐
Cygwin Wiki
cygwin.fandom.com › wiki › How_to_install_a_newer_version_of_GCC
How to install a newer version of GCC | Cygwin Wiki | Fandom
The Cygwin 1.7.x devel area offers an older version of GCC (3.4.4-999), which is outdated for many purposes. (GCC 4.5.3-4 is also offered in the gcc4 package, but the Cygwin 1.7.x devel area does not offer GCC 4.6 or later). This article describes how to upgrade your Cygwin GCC installation to a more recent version (e.g., 4.6.1). Alternatively, MinGW can be installed alongside Cygwin.
🌐
University of Massachusetts Boston
cs.umb.edu › cs444 › gccWindows.html
gcc on Windows
Select all packages except ada, fortran and objc. Then use Installation>Apply Changes to get the install to proceed. For simple command line use, install MinGW, and add its bin directory to your Path. Then get a new CMD window to see that gcc is now available at the command line.
🌐
DEV Community
dev.to › marcosplusplus › how-to-install-the-new-version-of-gcc-mingw-on-windows-5fcf
How to Install the New Version of GCC MinGW on Windows - DEV Community
May 30, 2025 - If extracting it didn’t create ...mcf-dwarf-gcc-15.1.0-mingw-w64ucrt-12.0.0-r1/. ... Do this only if this is your first installation. If you’re updating from the previous article’s procedure, you don’t need to. Open the terminal with administrator privileges and run the command ...
🌐
FEA for All
feaforall.com › install-c-language-gcc-compiler-windows
How to install the C language GCC compiler on Windows - FEA for All
February 10, 2019 - The single biggest hang up I had is my last comment … 1.) Notice our teacher says that after Msys2msys you must update it. You must type the update command in the Msys2 window not in a windows terminal ) You’ll see the tile in your start directory & search for GCC (thinking its been installed) but it isn’t.
🌐
C++ Programming Language
cpp-lang.net › setup gcc on windows
Setup GCC on Windows | C++ Programming Language
:: To complete this update all MSYS2 processes including this terminal will be closed. Confirm to proceed [Y/n]` ... You can also install all packages by just pressing Enter, however, then it will take up a little more disk space. If you have followed the steps above correctly, you already have the GCC compiler installed on your computer.
🌐
Linux Hint
linuxhint.com › install-gcc-windows
How to Install GCC on Windows – Linux Hint
Step 8: Select the “Apply” button to begin installing the GNU C++ package on the Windows system. Step 9: Now go to “Advanced System Settings” and navigate to “Environment Variables”. Step 10: Double-click on the “Path” variable. Step 11: Add the “C:\MinGW\bin” to the list. Step 12: Press the “OK” button, then open Command Prompt and enter below-given command to confirm GCC installation on Windows.
🌐
Gentoo Wiki
wiki.gentoo.org › wiki › Upgrading_GCC
GCC - Gentoo wiki
When upgrading to GCC 4.1, or GCC 5.1, it is likely to encounter ABI issues. To prevent this, the revdep-rebuild command should be run against the libstdc++.so.5 library when moving from GCC 3 to GCC 4.1, or libstdc++.so.6 when moving from GCC 4 to GCC 5.1.
🌐
Instructables
instructables.com › circuits › computers
How to Install GCC Compiler in Command Prompt - Instructables
November 1, 2017 - How to Install GCC Compiler in Command Prompt: A Step by step video on How to install GCC Compiler in Command Prompt Made by Group 8 of S19 Members: Guada Michelle M. Gripal Mary Pauline Sacay Edward Guillermo Reynalyn Dela Cruz
🌐
WinLibs
winlibs.com
WinLibs - GCC+MinGW-w64 compiler for Windows
You have written software using another proprietary compiler (like Microsoft Visual C/C++ and Visual Studio) and would like to test if your application compiles using the the most common C/C++ compiler available: GCC. You have written software for Windows but would like to port it to other plaftorms (like Linux or Apple macOS). When using the MSYS2 command line you get access to most command line tools that are also available on those other platforms (like GNU Autotools), allowing you create standard build instructions across platforms (like: ./configure && make && make install).
🌐
PhoenixNAP
phoenixnap.com › home › kb › devops and development › how to install gcc on windows
How to Install GCC on Windows
September 23, 2024 - 5. Check if GCC was properly installed by opening the Command Prompt and running the following command: ... The system should output the program version, which means that it has been properly installed. Another way to install GCC on Windows is to use Chocolatey, a package manager designed for the Windows OS. It simplifies the process of installing, updating, and managing software through the command line.