Русский 中文 Español Deutsch 日本語 Português 한국어 Français Italiano Türkçe
MetaTrader 5 on Linux

MetaTrader 5 on Linux

MetaTrader 5Trading | 18 January 2013, 07:18
321 484 59

In this article, we demonstrate how to install MetaTrader 5 on popular Linux versions, Ubuntu and Debian. These systems are widely used on companies’ server hardware as well as on traders’ personal computers.

Installing the platform with one command

MetaTrader 5 runs on Linux using Wine. Wine is a free compatibility layer that allows application software developed for Microsoft Windows to run on Unix-like operating systems.

We have prepared a special script to make the installation process as simple as possible. The script will automatically detect your system version, based on which it will download and install the appropriate Wine package. After that, it will download and run the platform installer.

To start the installation, open the command line (Terminal) and specify the relevant command:

For Ubuntu:

wget ; chmod +x ; ./

For Debian:

wget ; chmod +x ; ./

This command downloads the script, makes it executable and runs it. You only need to enter your account password to allow installation.

Installing Wine and MetaTrader 5 with a single command

If you are prompted to install additional Wine packages (Mono, Gecko), please agree, as these packages are required for platform operation. The MetaTrader 5 installer will launch after that. Once you complete the standard steps, the platform is ready to go.

The MetaTrader 5 platform is ready to run on Linux

Install updates in a timely manner

It is highly recommended to always use the latest versions of the operating system and Wine. Timely updates increase platform operation stability and improve performance.

To update Wine, open a command prompt and type the following command:

sudo apt update ; sudo apt upgrade

For further information, please visit the official Wine website.

MetaTrader 5 Data Directory

Wine creates a separate virtual logical drive with the necessary environment for every installed program. The default path of the installed terminal data folder is as follows:

Home directory\.mt5\drive_c\Program Files\MetaTrader 5

Use MetaTrader 5 on Linux: install with a single command and enjoy all the platform features.

Translated from Russian by MetaQuotes Software Corp.
Original article:

Last comments | Go to discussion (59)
Cristian Eriksson
Cristian Eriksson | 13 Jan 2022 at 04:07

Here's a little guide on how to install metatrader on different distributions. Feel free to add to the list.

Arch 5.16.0+ (Wine 7):

sudo pacman -S wine  // Installs wine

sudo pacman -S lib32-gnutls  // Installes libarry to prevent proxy question

cd Downloads

wine64 icmarketssc5setup.exe  // Or whatever your metatrader installer file is called

Ubuntu 20.04+ / Mint 20.1+ / Popos 20.04+ / ZorinOs 16+:

sudo apt install wine // Installs older stable wine.

cd Downloads

wine64 icmarketssc5setup.exe  // Or whatever your metatrader installer file is called

Fedora 35+:

sudo dnf install wine

cd Downloads

wine64 icmarketssc5setup.exe  // Or whatever your metatrader installer file is called

In case of missing wine32u.dll or similar. The few missing dlls are located in another place in the /home/.wine folder.

Because not all the missing dll's are actually required, getting the first one(s?) will fix the rest.

Copy them one by one into the .wine/drive_c/windows/syswow64/ folder until it works. (mark show hidden files to see .wine directory in home folder)

Piotr Drozdek
Piotr Drozdek | 9 May 2022 at 03:52

MT5 with MQL5 Market is working perfectly fine on modern Wine versions. It's been years since you wrote this article, update it to reflect changes. Everything works.

jepper | 17 May 2022 at 12:06
Fedora 35+:

sudo dnf install wine

In respect of Fedora and other yum/dnf based distro's one would normally add a repo, such as below - otherwise you may end up with the distro vendors default version of wine, which most likely is outdated.

sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo # pay attention to version!
sudo dnf -y install winehq-stable
Cristian Eriksson
Cristian Eriksson | 10 Sep 2022 at 10:29
I was trying to keep the guide as simple as possible and I've never had a problem with Fedora running an old version of wine.
I think they renew their repository at least once per half year?
But of course for those that want bleeding edge, it's a good tip.
Daniel_San | 14 Sep 2022 at 16:34

I can install MT5 with this tutorial:

Unfortunately I cannot get my own indicators to be recognized by the program at all.

I am in the right directory and have refreshed and even restarted the program and PC.

On windows they are working fine.

Any ideas what could be wrong here?

Neural Networks: From Theory to Practice Neural Networks: From Theory to Practice
Nowadays, every trader must have heard of neural networks and knows how cool it is to use them. The majority believes that those who can deal with neural networks are some kind of superhuman. In this article, I will try to explain to you the neural network architecture, describe its applications and show examples of practical use.
MetaTrader 5 on Mac OS MetaTrader 5 on Mac OS
Apple products have become very popular. MetaQuotes Software Corp. attentively follows the progress of the IT industry and has already released the special mobile applications for iOS-based devices - MetaTrader 4 for iPhone and MetaTrader 5 for iPhone. There are many topics on forum, where people are seeking a solution for running MetaTrader 5 under Mac OS operating system. In this article, you will find out how to work with MetaTrader 5 via the Apple's popular operating system.
Order Strategies. Multi-Purpose Expert Advisor Order Strategies. Multi-Purpose Expert Advisor
This article centers around strategies that actively use pending orders, a metalanguage that can be created to formally describe such strategies and the use of a multi-purpose Expert Advisor whose operation is based on those descriptions
General information on Trading Signals for MetaTrader 4 and MetaTrader 5 General information on Trading Signals for MetaTrader 4 and MetaTrader 5
MetaTrader 4 / MetaTrader 5 Trading Signals is a service allowing traders to copy trading operations of a Signals Provider. Our goal was to develop the new massively used service protecting Subscribers and relieving them of unnecessary costs.