How To Install gedit on Ubuntu 20.04

In this tutorial we learn how to install gedit on Ubuntu 20.04. gedit is official text editor of the GNOME desktop environment official text editor of the GNOME desktop environment

Introduction

In this tutorial we learn how to install gedit on Ubuntu 20.04.

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. Task: ubuntu-desktop-minimal, ubuntu-desktop, ubuntu-budgie-desktop

Package: gedit Architecture: amd64 Version: 3.36.1-1 Priority: optional Section: gnome Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian GNOME Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 2008 Depends: gedit-common (« 3.37), gedit-common (>= 3.36), gir1.2-glib-2.0, gir1.2-gtk-3.0 (>= 3.21.3), gir1.2-gtksource-4, gir1.2-pango-1.0, gir1.2-peas-1.0, gsettings-desktop-schemas, iso-codes, python3-gi (>= 3.0), python3-gi-cairo (>= 3.0), python3:any, python3.8, libamtk-5-0 (>= 5.0.0), libatk1.0-0 (>= 1.12.4), libc6 (>= 2.4), libcairo2 (>= 1.2.4), libgdk-pixbuf2.0-0 (>= 2.25.2), libgirepository-1.0-1 (>= 0.9.3), libglib2.0-0 (>= 2.51.0), libgspell-1-2 (>= 1.8.2), libgtk-3-0 (>= 3.21.5), libgtksourceview-4-0 (>= 3.18.0), libpango-1.0-0 (>= 1.14.0), libpeas-1.0-0 (>= 1.14.1), libtepl-4-0 (>= 4.4), libx11-6 Recommends: yelp, zenity Suggests: gedit-plugins Filename: pool/main/g/gedit/gedit_3.36.1-1_amd64.deb Size: 407544 MD5sum: c44f617d69129fafcab1db8699e021d7 SHA1: 4402b8b5fc33f132bfcf761d2920119601149f6f SHA256: 49c3617df21465a25f916f1be5e5272973c1b2503968f772579c541a5b8b4f06 Homepage: https://wiki.gnome.org/Apps/Gedit Description-en: official text editor of the GNOME desktop environment 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. Task: ubuntu-desktop-minimal, ubuntu-desktop, ubuntu-budgie-desktop

There are three methods to install gedit on Ubuntu 20.04. 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 Ubuntu. 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 Ubuntu 20.04

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 Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove gedit

Remove gedit Configurations and Data

To remove gedit configuration and data from Ubuntu 20.04 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

References

Summary

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