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

MetaTrader 5 on Linux

MetaTrader 5 — Trading |
1 296 593 407
MetaQuotes
MetaQuotes

In this article, we demonstrate how to install MetaTrader 5 on popular Linux versions, Ubuntu, Debian, Linux Mint and Fedora. 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, it supports Ubuntu, Debian, Linux Mint and Fedora distributions. Based on it, 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) without the administrator privileges (no sudo) and specify the relevant command:

wget https://download.terminal.free/cdn/web/metaquotes.software.corp/mt5/mt5linux.sh ; chmod +x mt5linux.sh ; ./mt5linux.sh

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, proceed with the standard steps. Once the installation is complete, restart your operating system, and 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 Ltd.
Original article: /ru/articles/625

Last comments | Go to discussion (407)
Miguel Angel Vico Alba
Miguel Angel Vico Alba | 21 Nov 2026 at 04:20
Thiago Ferreira #:
What I find difficult to understand is this idea that MetaQuotes should somehow be responsible for the consequences of someone's choice of operating system.

You prefer Linux? Fine. You believe in open-source software? Great. But choices come with trade-offs, and you can't reasonably expect every commercial software developer to spend time and money accommodating yours.

And frankly, I don't think the comparisons with Valve, Proton or the gaming industry prove much. Valve has a very clear commercial incentive to invest in Linux compatibility. It sells games, has its own Linux-based hardware and benefits directly from making Windows games run on it. Where is the equivalent business case for MetaQuotes? Just because another company invests in Wine doesn't mean MetaQuotes should do the same. Someone has to pay for development, testing and ongoing maintenance, and good intentions don't pay those bills.

I'm not defending broken installation scripts. If MetaQuotes provides one, it should work properly. That's a legitimate complaint. But that's a completely different matter from demanding a native Linux platform or a permanent commitment to maintaining Wine compatibility.

And all these estimates about how quickly AI could port MT5? Without knowing the codebase, its dependencies or the commercial requirements, they're little more than speculation.

My position is simple. If I depend on MT5 to trade real money, I use the environment that gives me the least trouble. If that's Windows, so be it. I care far more about my trading than about defending an operating system.

Nobody is stopping anyone from using Linux. But choosing Linux doesn't automatically make its compatibility problems someone else's responsibility.

You can ask MetaQuotes for better support. You can even decide not to use its products. What you can't do is assume that your personal preference should become someone else's business priority.

At some point, practicality has to matter more than ideology.
Aleksey Nikolayev
Aleksey Nikolayev | 21 Nov 2026 at 07:01
Miguel Angel Vico Alba #:
I find it hard to understand the idea that MetaQuotes should somehow be held responsible for the consequences of someone’s choice of operating system.

You may not have noticed, but this website (which clearly belongs to MetaQuotes) states that the platform is compatible with Linux.

Surely, they could at least specify in the release notes for MetaTrader which versions of Wine the terminal runs on.

Miguel Angel Vico Alba
Miguel Angel Vico Alba | 21 Nov 2026 at 07:14
Aleksey Nikolayev #:

You may not have noticed, but this website (which clearly belongs to MetaQuotes) states that the platform is compatible with Linux.

Surely, they could at least specify in the release notes for MetaTrader which versions of Wine the terminal runs on.

You may not have noticed, but my comment contains more than just the first sentence. I explicitly acknowledged MetaQuotes' responsibility for the installation procedures it provides.

Forum on trading, automated trading systems and testing trading strategies

Discussion of article "MetaTrader 5 on Linux"

Miguel Angel Vico Alba, 2026.11.21 04:20

I'm not defending broken installation scripts. If MetaQuotes provides one, it should work properly. That's a legitimate complaint. But that's a completely different matter from demanding a native Linux platform or a permanent commitment to maintaining Wine compatibility.
JRandomTrader
JRandomTrader | 21 Nov 2026 at 08:15

And what if we could ‘smartify’ the auto-update a bit more, so that it doesn’t update on those versions of Wine/Windows where the update wouldn’t work...

But that’s too complicated a task; no AI could manage it )

Yasuaki Kimushigeru
Yasuaki Kimushigeru | 29 Nov 2026 at 05:48
I have found a potential clue regarding the Webview2 issue.

The EA installer for transmitting trading history—distributed via the Myfxbook website —was recently updated. It now requires Webview2 when installed on Linux (please see the attached image).

After installing Webview2 using `MicrosoftEdgeWebview2Setup.exe` on both Ubuntu 26.04 and Debian 13, the application displayed only a blank, white screen upon relaunch.

It is important to note that this installer does not run on MT5; in other words, the blank screen may occur independently of MT5.

I am not certain if this is the same issue as the one affecting the MQL5 Market within MT5, but I hope this information proves helpful in finding a solution.


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.
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.
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
Interview with Alexey Masterov (ATC 2012) Interview with Alexey Masterov (ATC 2012)
We do our best to introduce all the leading Championship Participants to our audience in reasonable time. To achieve that, we closely monitor the most promising contestants in our TOP-10 and arrange interviews with them. However, the sharp rise of Alexey Masterov (reinhard) up to the third place has become a real surprise!