How To Install mousepad on Debian 11

In this tutorial we learn how to install mousepad on Debian 11. mousepad is simple Xfce oriented text editor

Introduction

In this tutorial we learn how to install mousepad on Debian 11.

What is mousepad

mousepad is:

Mousepad is a graphical text editor for Xfce based on Leafpad.

The initial reason for Mousepad was to provide printing support, which would have been difficult for Leafpad for various reasons.

Although some features are under development, currently Mousepad has the following features:

  • Complete support for UTF-8 text
  • Cut/Copy/Paste and Select All text
  • Search and Replace
  • Font selection
  • Word Wrap
  • Character coding selection
  • Auto character coding detection (UTF-8 and some code-sets)
  • Manual code-set setting
  • Infinite Undo/Redo by word
  • Auto Indent
  • Multi-line Indent
  • Display line numbers
  • Drag and Drop
  • Printing

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

Install mousepad Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mousepad

Install mousepad Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mousepad

Install mousepad 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 mousepad using aptitude by running the following command:

sudo aptitude -y install mousepad

How To Uninstall mousepad on Debian 11

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

sudo apt-get remove mousepad

Uninstall mousepad And Its Dependencies

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

sudo apt-get -y autoremove mousepad

Remove mousepad Configurations and Data

To remove mousepad configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge mousepad

Remove mousepad configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mousepad

Dependencies

mousepad have the following dependencies:

References

Summary

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