How to Seamlessly Run Windows Apps on Linux: A Step-by-Step Guide (With a Dash of Wine )

How to Seamlessly Run Windows Apps on Linux: A Step-by-Step Guide (With a Dash of Wine )

Unlock the full potential of your Linux system by using Wine to enjoy classic Windows games without a hitch, bringing your favorite old-school experiences back to life.

If you’re like me and enjoy using Linux but occasionally need to run Windows applications, Wine is a fantastic tool to have in your arsenal. Wine acts as a compatibility layer for Linux, allowing you to run Windows programs as if they were native to your system. In this guide, I’ll walk you through the process of installing Wine on Ubuntu, but the steps should be similar for other Linux distributions as well.

Prerequisites

Before we dive in, make sure you have the following:

  • A user account with sudo or root privileges.
  • An Ubuntu system (I’m using Ubuntu 20.04, but other versions will work too).
  • Access to the terminal.

Install Wine from the Ubuntu Repository

One of the easiest ways to install Wine is through the default Ubuntu repositories. This method ensures you get a version of Wine that has been tested and optimized for your system.

Step 1: Check Your System Architecture

First, we need to determine whether your system is 32-bit or 64-bit. Open your terminal and type the following command:

lscpu

Look for the “CPU op-mode(s)” field in the output:

  • If it says “32-bit,” you have a 32-bit system.
  • If it says “64-bit,” you have a 64-bit system.
  • If it shows both, your system supports both architectures.

In my case, my system supports both 32-bit and 64-bit architectures.

Step 2: Install Wine from the Default Repositories

Now, let’s install Wine. First, update your package list:

sudo apt update

sudo apt install wine64

sudo apt install wine32

Step 3: Verify the Installation

Once the installation is complete, verify it by checking the Wine version:

wine --version

Install Wine from the WineHQ Repository

If you need the latest version of Wine, you can install it from the WineHQ repository. Here’s how to do it.

Step 1: Enable 32-bit Architecture

Even if you have a 64-bit system, you’ll need to enable 32-bit architecture to run certain 32-bit applications. Enter the following command:

sudo dpkg --add-architecture i386

Step 2: Add the GPG Key

Next, add the WineHQ repository’s GPG key to your system to ensure the packages you download are secure:

wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Step 3: Add the WineHQ Repository

Add the repository to your list of sources. Replace “jammy” with your Ubuntu version (e.g., “focal” for Ubuntu 20.04):

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ jammy main'

Step 4: Install Wine

Update your package list again:

sudo apt update

To install the latest stable release of Wine, use:

sudo apt install --install-recommends winehq-stable

For the latest development release, use:

sudo apt install --install-recommends winehq-devel

Step 5: Verify the Installation

Check the installation by running:

wine --version

Using the WineHQ repository ensures you get the most recent updates and features.
How to Update Wine

To keep your Wine installation up to date, simply run:

sudo apt upgrade winehq-stable

Replace “stable” with “devel” if you have installed the development version. Stable releases come out every 10-12 weeks, while developer updates are more frequent.

By Chief Geek

Hello Geeks, I'm Chief Geek, your self-appointed Chief Geek(duh) at Weekend Geeks. By day, I’m a tech enthusiast, but by night, I morph into a caffeinated zombie on steroids type super-geek, diving headfirst into the world of gadgets, games, and all things nerdy.If something plugs in, powers up, or requires a firmware update, I’m on it faster than you can sneeze.From vintage arcade classics to the latest console crazes, I’ve rekt my way to the Chicken Dinner (not to mention a few aimbots here and there! ) . Python, Java, C++ , BrainFek– you name it, I’ve probably debugged it at 3 AM while munching on cold rocks .I talk to my Raspberry Pi more than I do to actual humans. My terminal is my therapist.When I’m not buried under a pile of intel manuals, you’ll find me blogging about the latest geek trends, reverse engineering the universe, and curating the ultimate playlist of 8-bit games and keygen soundtracks. My mission? To make Weekend Geeks your go-to destination for all things geeky, quirky, and downright fun.Fun Fact: I once stayed up 48 hours straight trying to perfect my high score in Flappy-Bird (True Story). Spoiler alert: I didn’t, but I did discover the perfect ratio of caffeine to snacks.Let's make the world a little geekier, one blog post at a time.

3 thoughts on “How to Seamlessly Run Windows Apps on Linux: A Step-by-Step Guide (With a Dash of Wine )”
  1. Hey, that’s cool ! Can we have a tutorial on gaming with wine . I am really new to linux and completely lost 😔

    1. Glad you liked this ! I will be posting a tutorial on playing old windows games like road rash,pocket tanks , super DX-ball with wine, very soon . Stay tuned 😁

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Facebook
  • X (Twitter)
  • LinkedIn
  • More Networks
Copy link