MinGW-w64 provides a development and runtime environment for 32- and 64-bit (x86 and x64) Windows applications using the Windows API and the GNU Compiler Collection (gcc). In this guide, I will show you how to install mingw-w64 on Ubuntu 22.04.
- Operating system: Ubuntu 22.04 or older versions with more than 2GB RAM
- Privileges: Check that you can run sudo commands.
Install mingw-w64 Ubuntu 22.04
mingw-w64 is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.
Install mingw-w64 using APT
This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get mingw-w64 on your Ubuntu.
Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:
Step 2: Install the package on Ubuntu 22.04. You can now install mingw-w64 Ubuntu by executing this command in the terminal.
Install mingw-w64 using Aptitude
With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.
Then, you can now install mingw-w64, just following these steps:
Step 1: Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing this Linux command:
Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install mingw-w64 Ubuntu by executing this command in the terminal.
Uninstall mingw-w64 on Ubuntu 22.04
Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a mingw-w64, can be easily uninstalled by anyone.
You can uninstall mingw-w64 Ubuntu by running this command if you installed it using APT or Aptitude.
To uninstall mingw-w64 and remove its data and dependencies, you can also use the following command:
In this guide, I showed you ways to install mingw-w64 on Ubuntu 22.04 and ways to uninstall mingw-w64 too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.