How to install Notepad ++ on Linux

Notepad ++ is a popular source code editor among Windows users. It supports close on 78 different programming language syntaxes and contains a variety of functions to improve text editing.

One limitation of Notepad ++, however, is that it is only limited to Windows. So if you’ve been a Notepad ++ user for a long time and recently switched the operating system to Linux, you are likely to feel the emptiness of Notepad ++ very much.

Fortunately, however, there are several ways you can get Notepad ++ installed and working on a Linux computer. In this guide, we will discuss these methods in detail.

Install Notepad ++ on Linux with Wine

One of the preferred methods of installing Notepad ++ and other Windows programs on Linux is by using Wine. This method works well with Debian and its derivatives. However, if you’re using a different Linux distribution, then using Snap (shown below) is probably a better way to install Wine on your computer.

For the uninitiated, Wine (an acronym for Wine is not an emulator ) is a compatibility layer that allows you to run Windows programs on Unix-like operating systems.

Download and set up wine

First, open the Terminal app and add a WineHQ signature key using the following command:

                        wget -qo- | sudo apt-key add -

If this command returns an error, you can split it into two parts. This is what it would look like:

                        wget -qo-
sudo apt-key add Release.key

Next, run the following command to add the Wine official repository to your system’s repository list:

                        sudo apt-add-repository 'deb
                        / bionic main'

Update your system’s package list by running:

                        sudo apt-get update

Finally, install Wine on your computer using the following command:

                        sudo apt-get install --install-recommends winehq-stable

When prompted, enter and / Yes sir and hit Enter keep going.

Once Wine is installed, you’ll need to set the architecture and prefix to indicate whether you have a 32-bit or 64-bit system. For better compatibility, we set both the architecture and the prefix to 32-bit.

To do this, run the following two commands in a terminal window:

                        export WINEARCH=win32
export WINEPREFIX=~/.wine32

Install Notepad ++ with Wine

After you’ve installed and set up Wine, it’s time to download and install Notepad ++ in Wine.

To do this, download the installation package from the official website.

Download: Notepad ++

After the download is complete, go to the Downloads Directory (or the directory where you downloaded the program) on your computer. Right click on the Notepad ++ setup file and select Open in another application> Wine Windows Program Loader to load it into Wine.

Wine now runs the Notepad ++ installer. The first thing you will be asked to do is choose your preferred language.

By doing Installer language Command prompt, select a language and press OK .

You will now be welcomed to the initial setup screen. Blow Next keep going.

Accept the license terms by clicking on I agree Button on the License agreement Page.

Now choose a destination folder to install Notepad ++ and click on Next .

On the component selection screen, choose between Minimalistic or Custom Packages and tap Next . Minimalist gives you only the basic components required to run Notepad ++, while Custom allows you to individually select components that you want to install (like plugins).

If you want a shortcut for Notepad ++ on your desktop for easy access, check the box next to Create a shortcut on the desktop on the next screen.

Then click on To install to install Notepad ++ with the selected settings.

Install Notepad ++ on Linux with Snap

Installing Notepad ++ or any other program through Snap is the easiest, and you can use this method for pretty much any Linux distribution that doesn’t officially contain the package you want to install in their package manager.

Similar to the standalone Wine approach, installing Notepad ++ over Snap also uses Wine: it’s based on an embedded version of Wine, but saves you the hassle of installing Wine separately.

To install Notepad ++ with Snap, first make sure that Snap is installed on your Linux computer. To do this, open the Terminal and do the following:


When it prints the snap description, it indicates that the snap is present. If it doesn’t, you will need to install Snap on your system before proceeding.

After installing Snap, install Notepad ++ with the following command:

                        sudo snap install notepad-plus-plus

If at some point in the future you want to uninstall Notepad ++ from your computer, you can do so using:

                        sudo snap remove notepad-plus-plus

Start Notepad ++

If you installed Notepad ++ with Wine, you must have had the opportunity to create a shortcut for Notepad ++ on your desktop. If you have it selected, you can now double-click the shortcut to run Notepad ++. If not, you can find Notepad ++ in the application menu.

Alternatively, you can also run Notepad ++ from the terminal with:

                        wine start 'installationpathforNotepad++'

To the exampleif you installed Notepad ++ under Program Files (x86) you would run:

                        wine start 'C:Program Files (x86)Notepad++⁠notepad++.exe'

Similarly, if you installed Notepad ++ through Snap, you can launch the program by finding it in the Applications menu or by using the Notepad-plus-plus Command in a terminal window.

If you choose the latter route and are unable to run Notepad ++, it may be because the PATH environment is not set up for it. In this case you can either set the PATH variable for Notepad ++ on your system or run the program by prefixing it with the installation path.

To do this, run first which notepad-plus-plus in a terminal window to find out the installation path for Notepad ++. Next, copy that path and paste it on a new line followed by Notepad-plus-plus .

To the exampleif Notepad ++ is installed under / snap / container / , you can run it from any directory with:


Be up to date with Notepad ++

If you’ve been a long-time Notepad ++ user, but had to use other text editors after switching to Linux, these instructions should help you install Notepad ++ on your Linux machine and get it up and running.

Finally, after you’re reunited with your favorite text editor, you can now use Notepad ++ on Linux in much the same way as you can on Windows. And since it runs on Wine, you should also be able to install the Notepad ++ Plugin Manager to further expand its capabilities.

Related Posts