Menu
User

DropVPS Team

Writer: Cooper Reagan

how to install wine on centos

how to install wine on centos

Publication Date

10/27/2025

Category

Articles

Reading Time

3 Min

Table of Contents

Run Windows applications on CentOS reliably with Wine. The steps below cover CentOS 7 and CentOS Stream 8/9. You will enable EPEL, handle 32-bit dependencies, install Wine, initialize a clean prefix, and test execution. Commands are safe for production if you review changes and snapshot your server first.

Check your CentOS version

Confirm the exact release to choose correct package manager and repositories.

cat /etc/os-release
NAME="CentOS Stream"
VERSION="9"

Update system packages

Refresh metadata and update installed packages to avoid dependency conflicts.

# CentOS 7
sudo yum -y update

# CentOS Stream 8/9
sudo dnf -y upgrade

Enable EPEL and core build repos

Wine and its dependencies live in EPEL; CRB/PowerTools provides extra libraries.

# CentOS 7
sudo yum -y install epel-release

# CentOS Stream 8/9
sudo dnf -y install epel-release dnf-plugins-core
# Enable CRB/PowerTools (one of these will succeed depending on your release)
sudo dnf config-manager --set-enabled crb || \
sudo dnf config-manager --set-enabled powertools || \
sudo dnf config-manager --set-enabled PowerTools

Prepare 32-bit multilib support

Many Windows apps are 32‑bit. Install i686 runtime basics to satisfy Wine.

# CentOS 7
sudo yum -y install glibc.i686 libgcc.i686

# CentOS Stream 8/9
sudo dnf -y install glibc.i686 libgcc.i686

Install Wine packages

Install both 64‑bit and 32‑bit Wine userspace, plus winetricks for helpers.

# CentOS 7
sudo yum -y install wine.x86_64 wine.i686 winetricks cabextract

# CentOS Stream 8/9
sudo dnf -y install wine.x86_64 wine.i686 winetricks cabextract
Installed:
  wine-...  wine-core-...  wine-common-...  winetricks  cabextract  (versions will vary)

Verify Wine installation

Confirm the binary is available and resolve any missing dependencies.

wine --version
wine-8.0 (or newer)

Initialize a clean Wine prefix

Create separate prefixes for 64‑bit and 32‑bit apps to keep environments clean.

# 64-bit prefix
WINEARCH=win64 WINEPREFIX=$HOME/.wine64 winecfg

# 32-bit prefix
WINEARCH=win32 WINEPREFIX=$HOME/.wine32 winecfg
Creating Wine prefix in /home/user/.wine64 ...
... first-run setup downloads components (gecko/mono) ...

Configure optional components with winetricks

Install common DLLs or fonts required by specific applications.

# Example for 32-bit prefix
WINEPREFIX=$HOME/.wine32 winetricks corefonts vcrun2015

Run a Windows program

Execute built-in tools or your application installer using the right prefix.

# Notepad test (64-bit prefix)
WINEPREFIX=$HOME/.wine64 wine notepad

# Install a program from an EXE (32-bit prefix)
WINEPREFIX=$HOME/.wine32 wine /path/to/installer.exe

Set file associations and display settings

Tune DPI, drives, and defaults to improve app rendering and path access.

# Open Wine configuration GUI
WINEPREFIX=$HOME/.wine64 winecfg

# Optional: map a Linux directory as a Windows drive
ln -s $HOME/Downloads $HOME/.wine64/dosdevices/d:/

Troubleshoot common issues

Fix frequent dependency and audio issues on CentOS quickly.

# Find which package provides a missing library
sudo dnf provides "*/ntlm_auth"
sudo dnf -y install samba-winbind

# Ensure audio for 32-bit apps (PulseAudio)
sudo dnf -y install alsa-plugins-pulseaudio.i686

# Reset a broken prefix (back up first)
rm -rf $HOME/.wine32 && WINEARCH=win32 WINEPREFIX=$HOME/.wine32 winecfg

Wine now runs on CentOS with clean 32‑bit and 64‑bit prefixes. Keep EPEL enabled for updates and pin your prefixes per app for stability. For more reading, guidance, and to buy servers with expert support, visit dropvps.com. For more guides, visit dropvps.com

Windows VPS
U
Loading...

Related Posts

how to install wine on centos