Wine is a compatibility layer that allows you to run Windows applications (.exe files) on Ubuntu/Linux.
Step 1: Update System
First update the package list.
sudo apt update
sudo apt upgrade
Step 2: Enable 32-bit Architecture
Wine requires 32-bit support.
sudo dpkg --add-architecture i386
Step 3: Install Wine
Install Wine using the Ubuntu repository.
sudo apt install wine
Step 4: Check Wine Version
After installation, verify Wine.
wine --version
Example output:
wine-8.x
Step 5: Configure Wine
Run Wine configuration:
winecfg
This will:
- Create a Wine directory
- Set Windows compatibility settings.
Step 6: Run Windows Software
To run a Windows program:
wine program.exe
Example:
wine setup.exe
Summary
| Step | Command |
|---|---|
| Update system | sudo apt update |
| Enable 32-bit | sudo dpkg --add-architecture i386 |
| Install Wine | sudo apt install wine |
| Check version | wine --version |
| Configure Wine | winecfg |