Red Wine in a GlassHow to Install Wine on PCLinuxOSCSS HTML Validator Logo
HOME Tutorials & Essays About
Tutorials & Essays About

October 8, 2021

PCLinuxOS screen shot

How to Install Wine on PCLinuxOS

As of October 2021, PCLinuxOS supports Wine Stable 6.0.1. Wine Development and Wine Staging are not available.

Table of Contents

Installing Wine using Synaptic Package Manager (GUI)

Installing Wine using Terminal Commands (CLI)

Installing Wine using Synaptic Package Manager

Do a full system upgrade

Open Synaptic Package Manager. The easiest way to do this is to click the Synaptic Package Manager icon in the desktop panel. Alternatively, open the Application Menu (an icon in the lower left corner of the desktop) and search for Synaptic or find it in the Software Center group of apps.

You will be asked to provide the root password.

After entering the root password, complete the following to update all packages.

Install wine

After the reboot, re-open Synaptic Package Manager.

Click the Search icon in the Synaptic Package Manger toolbar, and search for wine.

Complete the following to install Wine.

Verify successful installation by noting that, in the Package Manager window, the check boxes for wine32.32bit, wine64, wine-gecko, and wine-mono are colored green.

Close Synaptic Package Manager.

Optional After completing the above, you can further verify successful installation by opening a Terminal window and entering the following command. This command will produce an error message followed by the Wine version number. The error message is bogus, so just ignore it. (This error message will reappear every time you work with Wine in a Terminal window. To eliminate it, see Eliminate bogus error message, below.)

$ wine --version

Assuming you see the Wine version number, all is well, and you can close the Terminal window.

$ exit

PlayOnLinux and Winetricks

PlayOnLinux and Winetricks are optional. Both can be installed from Synaptic Package Manager, but install them only if you know what they are and plan to use them.

To install PlayOnLinux and/or Winetricks, open Synaptic Package Manager and click the toolbar Search icon to search for them. Install them using the same procedure as for Wine.

Other installed apps

You will find that a number of Wine apps have automatically been installed in Application Menu's More Applications group of apps.

When you install your own MS Windows apps, a Wine group containing your apps will added to Application Menu.

Installing Wine using Terminal Commands

Why no sudo?

PCLinuxOS does not enable sudo by default. Their compelling rational may be found in

www.pclinuxos.com/forum/index.php/topic,90479.0.htmlNew Window Icon

Out of respect, this tutorial will consistently use su rather than sudo. The consequence is that only a user in possession of the root password will be able to install Wine. Disallowing user passwords to grant root privileges – an obvious threat to security – is the point.

Usage When su -c executes a command, $HOME has the value /root and $USER is the current user. When su -lc executes a command, $HOME has the value /root and $USER has the value root, which is the same as executing the command with sudo. Therefore, su -lc is the correct replacement for sudo.

Apt vs Apt-get

In PCLinuxOS, apt is a link to apt-get. Hence they can be used interchangeably. For information about apt, execute $ man apt-get.

Eliminate bogus error message

ERROR: ld.so: object '/usr/lib64/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

This error message will appear repeatedly when working with Wine in a Terminal session. One way to eliminate it is by unsetting environment variable LD_PRELOAD in ~/.bashrc.

Open a Terminal window and enter the following commands.

$ cd ~
$ echo 'unset LD_PRELOAD' >> .bashrc
$ source .bashrc

The echo command appends the unset command to the end of file .bashrc, so the unset command will execute every time a Bash terminal window is opened. The source command makes the unset command effective immediately in the current Bash session.

As to the error itself, it simply says that the requested library preload is impossible and will be ignored.

Installing Wine

Update all packages. As PCLinuxOS is a rolling distribution, this is done with a distribution upgrade.

$ su -lc 'apt update'
$ su -lc 'apt dist-upgrade'

The next command installs Wine x64, Wine x32, mono, and gecko.

$ su -lc 'apt install wine64'

Verify the installation succeeded.

$ wine --version

PlayOnLinux and Winetricks

PlayOnLinux and Winetricks are optional, so install them only if you know what they are and plan to use them.

$ su -lc 'apt install PlayOnLinux'
$ su -lc 'apt install winetricks'

The following commands can be used to verify the installations.

$ playonlinux --version
$ winetricks --version
$ winetricks --help

All done, so exit from root and close the Terminal window.

$ exit

Other installed apps

You will find that a number of Wine apps have automatically been installed in Application Menu's More Applications group of apps.

When you install your own MS Windows apps, a Wine group containing your apps will added to Application Menu.


Facebook Logo   Twitter Logo  Reddit Logo   Quora Logo

Consider sharing your experience

Did you find this page helpful? Have constructive feedback? Wisdom to share?

Send email to Email Address

Privacy PolicyNew Window Icon

A.Z. (initials or other identifier) (date will be here)

… (your comment appears here) …