How to Install Notepad++ on RHEL/Centos/AlmaLinux/Fedora Linux

How to Install Notepad++ on RHEL/Centos/AlmaLinux/Fedora Using Snap

Notepad++ is primarily designed for Windows, but it can be installed on Red Hat Enterprise Linux (RHEL) using the Snap package manager. Snap provides a convenient way to install and manage applications that may not be available directly through RHEL's standard repositories.

This guide walks through installing Snap and then using it to install Notepad++.

Requirements

Before beginning, make sure you have:

  • A supported RHEL installation
  • An active Internet connection
  • A user account with sudo privileges
  • A graphical desktop environment

1. Install Snap

Open a Terminal and install the Snap package:

sudo dnf install snapd

If prompted, enter your administrator password and confirm the installation.

2. Enable the Snap Service

After Snap has been installed, enable its socket so Snap is available when needed:

sudo systemctl enable --now snapd.socket

You can verify that the Snap socket is running with:

systemctl status snapd.socket

If everything is working correctly, the service should show as active.

3. Install Notepad++ with Snap

Once Snap is installed and enabled, install Notepad++ with:

sudo snap install notepad-plus-plus

Snap will download and install Notepad++ along with the components required to run it.

The installation may take a few moments depending on your Internet connection.

4. Start Notepad++

After the installation has completed, start Notepad++ from the terminal with:

snap run notepad-plus-plus

Yes. Since it runs with snap run notepad-plus-plus, you can create a .desktop launcher so Notepad++ appears in the RHEL Applications/Programs menu.

Create a Shortcut on the Desktop Menu

1. Find the Snap desktop file

First, check whether Snap already created one:

find /var/lib/snapd/desktop/applications -iname "*notepad*"

If you get something like:

/var/lib/snapd/desktop/applications/notepad-plus-plus_notepad-plus-plus.desktop

you can copy it into your user's application directory:

mkdir -p ~/.local/share/applications
cp /var/lib/snapd/desktop/applications/notepad-plus-plus_notepad-plus-plus.desktop ~/.local/share/applications/

Then refresh the desktop menu or log out and back in.