How to Install Kate Text Editor on Ubuntu 20.04 LTS

Kate is a powerful and intuitive editor that may be the perfect fit for you. With its robust yet straightforward interface, Kate offers everything from word processing to development tools in one place – which saves time! And with 200+ languages available on-board alongside plugins galore (think code hooks), this tool will help maximize productivity, whether it’s coding or content creation.

In the following tutorial, you will learn how to install Kate Text Editor on Ubuntu 20.04 LTS Focal Fossa using three installation methods.

Update Ubuntu System

Update your Ubuntu operating system to make sure all existing packages are up to date:

sudo apt update && sudo apt upgrade -y

Next, use one of the following three installation options to install Kate Text Editor.

Install Kate Text Editor – APT Method

Currently, three methods exist apt, flatpak, and snap to install Kate Text Editor and keep the software up to date with software managers, so you do not forget to keep your text editor up to date.

The first method is to install using APT begin the installation as follows.

sudo apt install kate -y

Install Kate Text Editor – Snap Method

The second option is to install the Kate package using snap. Snap isn’t as popular as most other options, even with Ubuntu users, but the upside is that you will have the most up-to-date version of Kate installed on your system.

By default, Snap should be present on your system. For users that have removed this, use the following command to re-install the package.

sudo apt install snapd -y

Before running the Kate installation command, install the Snap core.

sudo snap install core

Now run the following command that provides the maximum compatibility for snap packages with a symlink to /snap.

sudo ln -s /var/lib/snapd/snap /snap

Next, use the following terminal command to install Kate using the snap command.

sudo snap install kate --classic

Example output:

kate 21.12.1 from KDE✓ installed

Install Kate Text Editor – Flatpak Method

The last method is to install Kate Text Editor known and based as Kwrite text editor by KDE on Flatpak. Flatpaks are installed by default on many Linux distributions such as Fedora, RHEL downstream distributions such as AlmaLinux, CentOS, Rocky Linux, and even Linux Mint.

By default, given that the company behind Ubuntu is behind Snap, which was the previous installation method, they omit Flatpak to be installed. However, it is still available to install from Ubuntu’s repository.

First, install Flatpak using the following command.

sudo apt install flatpak -y

Next, reboot so your system paths can be adequately generated. Failure to do this will see application icons not appearing and other odd issues.


Skip the reboot if you have Flatpak already installed.

Next, you need to enable Flatpack using the following command in your terminal:

sudo flatpak remote-add --if-not-exists flathub

Now begin the installation using the following flatpak command.

flatpak install flathub org.kde.kwrite -y

Launch Kate Text Editor

With the installation complete, you can run Kate in a few different ways.

First, while you are in your terminal, you can use the following command.


Alternatively, run the kate & command in the background to free up the terminal:

kate &

Snap installations can use the following command.

sudo snap run kate

Lastly, KWrite (Kate) users use the Flatpak run command.

flatpak run org.kde.kwrite

However, this isn’t practical, and you would use the following path on your desktop to open with the path: Applications > Search > Kate.


Install Kate Text Editor on Ubuntu 20.04 LTS

Once open, you will arrive at the default launch screen.


Install Kate Text Editor on Ubuntu 20.04 LTS

A good idea is to modify the default color scheme. By default, Kate Text Edit comes with a few color theme options.

These settings can be found in the configuration menu.

Update/Upgrade Kate Text Editor

Kate Text Editor can be upgraded using the following commands.

Upgrade Kate Text Editor – APT Method

sudo apt update

If one is available, use the upgrade option:

sudo apt upgrade

Note this will update all packages (recommended), for example, to upgrade the Kate package itself.

sudo apt upgrade kate

Upgrade Kate Text Editor – Snap Method

sudo snap refresh

Upgrade Kate Text Editor – Flatpak Method

flatpak update

Remove (Uninstall) Kate Text Editor

To remove the Kate software from your system, run the following command in your terminal.

Remove Kate APT Method:

sudo apt autoremove kate --purge -y

Remove Kate Snap Method:

sudo snap remove kate --classic

Remove Kate Flatpak Method:

flatpak uninstall --delete-data org.kde.kwrite

Also, it is advised to run flatpak remove –unused often to remove any leftover packages that are no longer required.

flatpak remove --unused

Comments and Conclusion

In the tutorial, you have learned how to install Kate Text Editor on Ubuntu 20.04 LTS Focal Fossa.

Kate is a great lightweight text editor for those that strictly prefer using open-source software, along with a user-friendly interface, making it easy to use.

For more information, visit the official Kate Text Editor website.


Like to get automatic updates? Follow us on one of our social media accounts!