Note: Notepad++ is a Windows-native text editor and does not have an official Linux version. However, you can run it on CentOS using compatibility layers (like Wine) or install native alternatives. Below are the most reliable configuration methods:
Wine allows you to execute Windows applications on Linux. This is the most direct way to use Notepad++ on CentOS.
Update your system and install Wine from the default CentOS repositories:
sudo yum update -y
sudo yum install wine -y
Verify the installation with wine --version
(should return a version number).
Go to the Notepad++ official website, download the latest Windows installer (.exe
file, e.g., Notepad++-Setup.exe
).
Navigate to the directory where the installer is saved (e.g., ~/Downloads
) and run:
cd ~/Downloads
wine Notepad++-Setup.exe
Follow the on-screen instructions (accept the license, choose “Typical” installation).
After installation, start Notepad++ from the terminal:
wine ~/.wine/drive_c/Program\ Files/Notepad++/notepad++.exe
You can also create a desktop shortcut for easier access.
If you prefer a Linux-native editor with similar features, consider these alternatives:
Notepadqq is a Linux port of Notepad++ available via the EPEL repository.
sudo yum install epel-release -y
sudo yum install notepadqq -y
Launch it from the application menu (search for “Notepadqq”).
VS Code is a cross-platform, feature-rich editor with extensions for Notepad+±like functionality.
sudo yum install wget -y
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo rpm --import -
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
sudo yum install code -y
Launch with code
from the terminal.
Gedit is pre-installed on many CentOS systems. Open it via the application menu or run:
gedit
winecfg
to configure Wine (e.g., set Windows version to “Windows 10”).sudo yum install fontconfig libX11-devel libXext-devel
.By following these steps, you can successfully configure a Notepad+±like experience on CentOS. Choose the method that best fits your needs (compatibility vs. native support).