October 30, 2025
This document explains how to install x86_64 Wine on AMD64 Mageia Linux. x86_64 Wine can run both 64-bit and 32-bit Windows apps.
Mageia offers only Wine Stable. Wine Development and Wine Staging are not available. At the time of this writing, the version of Wine that is installed is Wine 8.0.
Verify you can use sudo by executing this command.
$ sudo echo Hello
If the output is the word Hello, proceed on to the next section, Enable 32-bit repositories. Otherwise, go to the Appendix on Sudo at the end of this document and enable sudo for yourself.
References
Enabling Repositories with dnf![]()
An installation of x86_64 Wine supports both 64-bit and 32-bit Windows apps. In Mageia, 64-bit core and update repositories are enabled by default, but the 32-bit repositories are not, so, before installing Wine, the 32-bit core and update repositories must be enabled.
Open a Terminal window and execute these commands.
$ sudo dnf config-manager --set-enabled mageia-i586
$ sudo dnf config-manager --set-enabled updates-i586
The next command synchronizes the repositories.
$ sudo dnf distro-sync --refresh
The output of the previous command must contain these four repositories.
Mageia 9 - i586
Mageia 9 - i586 – Updates
Mageia 9 - x86_64
Mageia 9 - x86_64 – Updates
Two graphics libraries,
$ sudo dnf install libmesagl1 libmesaglu1
and a library for manipulating JPEG image files.
$ sudo dnf install libjpeg8
$ sudo dnf install wine64 wine32
Open a Terminal window and execute
$ wine --version
Remote file
content-configure-test-windowsapps.html
does not exist.
Reference
If the result of executing the command
$ sudo echo Hello
was that sudo is an unknown command, it must be installed. If that is necessary, execute
$ su
# urpmi sudo
Return to being a normal user by executing
# exit
Close the Terminal window and reboot your computer before continuing.
-------------------
Continue by configuring sudo.
The following adds the wheel group to the sudo configuration file. (In case the name 01wheel fails, or you don't like it, just replace it with something else.)
$ su
# echo "%wheel ALL=(ALL:ALL) ALL" > /etc/sudoers.d/01wheel && chmod 440 /etc/sudoers.d/01wheel
Use nano or any other command line editor to open /etc/group for editing.
# nano /etc/group
Locate the line
wheel:x:10:
and change it to
wheel:x:10:name
but replace name by your login name.
Write file /etc/group to disk (Ctrl-O), and exit from Nano (Ctrl-X).
Reboot your computer.
-------------------
After the reboot, you can execute
$ sudo echo Hello
to verify that you really can use sudo.
Did you find this page helpful? Have constructive feedback? Wisdom to share?
Send email to Email Address
