How to Install Notepadqq on Ubuntu 20.04

How to Install Notepadqq on Ubuntu 20.04

If you’re looking for a solution on how to install Notepadqq on Ubuntu 20.04, you’ve come to the right place!

If you have been a Windows user for a while, you might’ve already used Notepad++ at some point. It is a lightweight and powerful text editor. However, on Linux, we have Notepadqq, which looks like Notepad++ and contains almost the same features.

Notepadqq is an Open source project designed and developed by some great people. That’s why they made it completely free to use. Notepadqq supports around 100 different languages and can become your daily text editor. In this tutorial, we will guide you on how to install Notepadqq on Ubuntu 20.04.

How to Install Notepadqq on Ubuntu 20.04

Prerequisite

To follow this tutorial, you will be needing the following:

  • A Machine with Ubuntu 22.04
  • Sudo privileges of that machine

Using Snap

One of the easy ways to install Notepadqq on Ubuntu 20.04 is to use the snap package. Snap package contains a collection of Linux packages that can be used in most Linux Distros. It contains the binary file (.bin) and all the other dependencies needed for an application to run.

If you are using other Linux distros than Ubuntu 20.04, you may need to use the following command to install snap:

$ sudo apt install snapd

But for Ubuntu 20.04, snap is pre-configured and installed out of the box. Snap can also be installed from the Ubuntu Software application.

Once all is done, you can run the following command to install Notepadqq:

$ sudo snap install notepadqq

After that, you can enjoy using the Notepadqq app on your Linux system.

Using Ubuntu Software  

The command line interface can be confusing for new Linux users. So, you can alternatively use Ubuntu Software to install Notepadqq. To do so, you just have to follow these steps:

  1. Open Ubuntu Software 
  2. Click on “Search” and type “Notepadqq”
Notepadqq file
  1. Click install, and voila! You’re all set to use the notepad app.

Using APT

APT is a command line tool for Ubuntu and Debian-based Linux OS. And we are sure you have used $ sudo apt-get update many times before.

To install using APT, run the following command:

$ sudo apt install notepadqq

It should show a similar output as this:

install Notepadqq using APT

Using PPA Repo

PPA (Personal Package Archives) Repo contains the most recent version of most of the Ubuntu-compatible software. It is the collection of software repositories targeted at Ubuntu users. 

It is very easy and safe to install using third-party repos. Most of the beta version and pre-release software is available here, so users can freely test them. That’s why it provides the recent version of most Ubuntu software, including Notepadqq.  

Open Terminal with GUI or with “Ctrl + Alt + T” and run the following command:

$ sudo add-apt-repository ppa:notepadqq-team/notepadqq

This command will add the PPA of the Notepadqq to your system for general use. 

Now that you have the PPA of Notepadqq in your system, you can finally use the apt command to install Notepadqq.
Input:

$ sudo apt-get update 
$ sudo apt-get install notepadqq

It will add Notepadqq to your application list, and you can launch it from the menu.

Installing from Source

Until now, we have used pre-compiled or pre-bundled Notepadqq from different sources. But in this step, we will compile the raw code directly from the Notepadqq GitHub repo

If you are a developer, you can enjoy this step as you get the chance to see the source code of Notepadqq. You can even make a few changes if that suits you, so here’s how you go about it.

To compile and use Notepadqq, we may need a few tools and packages. Run the following command to install the long list of those packages:

$ sudo apt-get install qt5-default qttools5-dev-tools qtwebengine5-dev libqt5websockets5-dev libqt5svg5 libqt5svg5-dev libuchardet-dev pkg-config

Now, we are going to copy the required code from the source using git.

Input:

$ git clone --recursive https://github.com/notepadqq/notepadqq.git

The output should look something like this:

Output installation notepadqq

I am assuming that you already have git installed on your machine. If you have accidentally deleted it or your machine doesn’t have git, please install it. 

Now enter that directory (notepadqq) using the following command:

$ cd notepadqq

Finally, all is set, and you have the source code of Notepadqq. Now is the time to build that source code to the executable with the following command:

$ ./configure --prefix /usr
$ make

Once done, you can then run the following command to install the Notepadqq build application on your Ubuntu machine.

Input:

$ sudo make install

The output should look something similar to this:

install Notepadqq on Ubuntu 20.04 1

Running Notepadqq

If you have been following this tutorial, you should have successfully installed Notepadqq on your system using the various methods above. So now, let’s proceed with using a command line or a graphical interface to open it.

The user interface of Notepadqq looks most like Notepad++ on Windows if you have used it before.

Notepadqq interface

And with that, you can now enjoy and use Notepadqq on your computer.

Uninstalling Notepadqq

Uninstalling Notepadqq is a relatively simple process. Just like how we installed Notepadqq using different methods, we can also remove them in the same manner. 

Using Snap

In this method, we remove Notepadqq using snap. You just have to run the following command:

$ sudo snap remove notepadqq

Using APT

If you have installed from APT, you can run the following command to remove Notepadqq:

$ sudo apt remove notepadqq

Using PPA

Here, we will try to uninstall Notepadqq from PPA using the following steps. Earlier, we used the add-apt-repository command to install in PPA. Now, we will use the command but with a different flag:

$ sudo add-apt-repository --remove ppa:notepadqq-team/notepadqq

And with that, you should have successfully removed PPA, but we still haven’t removed Notepadqq from PPA. So, we need to install another package called ppa-purge and uninstall the Notepadqq package.
Input:

$ sudo apt install ppa-purg
$ sudo ppa-purge ppa:notepadqq-team/notepadqq

And that’s about it for this tutorial. Here, we learned a lot about the various methods of installing Notepadqq. We also explored the ways to uninstall it in Ubuntu 20.04. 

If this guide helped you, please share it.

Leave a Reply
Related Posts