Software & AppsOperating SystemLinux

How To Completely Remove Wine from Your Ubuntu System

Ubuntu 17

Wine is a popular software that allows users to run Windows applications on Linux distributions like Ubuntu. However, there may be instances where you need to remove Wine completely from your system. This article will guide you through the process of completely removing Wine from your Ubuntu system.

What is Wine?

Wine, which stands for “Wine Is Not an Emulator,” is a compatibility layer that enables Linux users to run Windows applications directly on their systems. While it’s a useful tool, it may not always work as expected, or you may simply no longer need it. In such cases, you might want to remove it from your system.

Removing Wine from Your Ubuntu System

Step 1: Uninstalling Wine

Open a terminal by pressing Ctrl+Alt+T. This will bring up the terminal window where you can input commands.

To remove the Wine package, run the following command:

sudo apt-get remove --purge wine

Here, sudo stands for “superuser do,” which allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file. apt-get is the package handling utility in Ubuntu, and remove is used to remove the package. The --purge option is used to remove the package along with its configuration files.

Step 2: Deleting Wine Files

If the above command doesn’t remove all Wine-related files, you can manually delete them. Run the following commands:

cd $HOME
rm -r .wine
rm .config/menus/applications-merged/wine*
rm -r .local/share/applications/wine
rm .local/share/desktop-directories/wine*
rm .local/share/icons/????_*.xpm

In these commands, cd $HOME changes the directory to your home directory. The rm command is used to remove files or directories. The -r option tells rm to remove directories and their contents recursively. The * character is a wildcard that matches any number of characters.

Note: Be cautious when using the rm command, as it permanently deletes files. Double-check the paths and ensure you are deleting the correct files.

Step 3: Re-running the Uninstall Command

After deleting the files, run the uninstall command again to ensure any remaining Wine packages are removed:

sudo apt-get remove --purge wine

Step 4: Correcting Installation Errors

To correct any installation errors, run the following commands:

sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove

Here, update is used to resynchronize the package index files from their sources. The autoclean and clean commands are used to remove downloaded archive files. The autoremove command is used to remove packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed.

Remember to reboot your system or run sudo apt-get update after removing Wine to ensure all changes take effect.


This article has provided a step-by-step guide on how to completely remove Wine from your Ubuntu system. Always remember to be cautious when using commands that permanently delete files or change system settings. If you have any questions or run into any issues, feel free to ask for help on Ubuntu Forums or Ask Ubuntu.

Can I reinstall Wine after removing it from my Ubuntu system?

Yes, you can reinstall Wine by following the installation instructions provided by the Wine project. Simply removing Wine from your system will not prevent you from reinstalling it later if needed.

Will removing Wine affect my other installed applications?

Removing Wine should not affect your other installed applications. Wine is a separate compatibility layer and its removal should not impact other programs installed on your Ubuntu system.

Can I remove Wine without using the terminal?

Yes, you can remove Wine using a graphical package manager like Synaptic. Simply search for "wine" in the package manager, select the Wine packages, and choose the option to remove or uninstall them.

Will removing Wine delete my Windows applications that I installed using Wine?

Removing Wine will not delete your Windows applications that were installed using Wine. However, the files and configurations related to those applications will be removed. If you reinstall Wine in the future, you may need to reinstall and reconfigure those Windows applications.

Can I remove Wine if I have multiple versions installed?

Yes, you can remove multiple versions of Wine by following the same steps mentioned in the article. Make sure to run the uninstall command and delete the associated files for each version you want to remove.

Will removing Wine free up disk space on my Ubuntu system?

Yes, removing Wine will free up disk space on your Ubuntu system. The package and its related files can take up a significant amount of space, especially if you have installed Windows applications through Wine. Removing Wine will help reclaim that disk space.

Leave a Comment

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