How To Install gedit-plugin-code-comment on Ubuntu 18.04

In this tutorial we learn how to install gedit-plugin-code-comment on Ubuntu 18.04. gedit-plugin-code-comment is Code Comment plugin for gedit

Introduction

In this tutorial we learn how to install gedit-plugin-code-comment on Ubuntu 18.04.

What is gedit-plugin-code-comment

gedit-plugin-code-comment is:

gedit-plugins contain a set of plugins for gedit, GNOME’s text editor.

This plugin enables commenting or uncommenting blocks of code.

There are three methods to install gedit-plugin-code-comment on Ubuntu 18.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-plugin-code-comment 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-plugin-code-comment using apt-get by running the following command:

sudo apt-get -y install gedit-plugin-code-comment

Install gedit-plugin-code-comment Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install gedit-plugin-code-comment

Install gedit-plugin-code-comment 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-plugin-code-comment using aptitude by running the following command:

sudo aptitude -y install gedit-plugin-code-comment

How To Uninstall gedit-plugin-code-comment on Ubuntu 18.04

To uninstall only the gedit-plugin-code-comment package we can use the following command:

sudo apt-get remove gedit-plugin-code-comment

Uninstall gedit-plugin-code-comment And Its Dependencies

To uninstall gedit-plugin-code-comment and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove gedit-plugin-code-comment

Remove gedit-plugin-code-comment Configurations and Data

To remove gedit-plugin-code-comment configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge gedit-plugin-code-comment

Remove gedit-plugin-code-comment configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge gedit-plugin-code-comment

References

Summary

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