How To Install gedit on Debian 10

Learn how to install gedit on Debian 10 with this tutorial. gedit is official text editor of the GNOME desktop environment

Introduction

In this tutorial we learn how to install gedit on Debian 10.

What is gedit

gedit is:

gedit is a text editor which supports most standard editor features, extending this basic functionality with other features not usually found in simple text editors. gedit is a graphical application which supports editing multiple text files in one window (known sometimes as tabs or MDI).

gedit fully supports international text through its use of the Unicode UTF-8 encoding in edited files. Its core feature set includes syntax highlighting of source code, auto indentation and printing and print preview support.

gedit is also extensible through its plugin system, which currently includes support for spell checking, comparing files, viewing CVS ChangeLogs, and adjusting indentation levels.

There are three methods to install gedit on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install gedit Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install gedit using apt-get by running the following command:

sudo apt-get -y install gedit

Install gedit Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install gedit using apt by running the following command:

sudo apt -y install gedit

Install gedit Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install gedit using aptitude by running the following command:

sudo aptitude -y install gedit

How To Uninstall gedit on Debian 10

To uninstall only the gedit package we can use the following command:

sudo apt-get remove gedit

Uninstall gedit And Its Dependencies

To uninstall gedit and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove gedit

Remove gedit Configurations and Data

To remove gedit configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge gedit

Remove gedit configuration, data, and all of its dependencies

We can use the following command to remove gedit configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge gedit

Dependencies

gedit have the following dependencies:

References

Summary

In this tutorial we learn how to install gedit package on Debian 10 using different package management tools: apt, apt-get and aptitude.