How To Install mousepad on CentOS 7

In this tutorial we learn how to install mousepad on CentOS 7. mousepad is Simple text editor for Xfce desktop environment

Introduction

In this tutorial we learn how to install mousepad on CentOS 7.

What is mousepad

Mousepad aims to be an easy-to-use and fast editor. It’s target is an editor for quickly editing text files, not a development environment or an editor with a huge bunch of plugins. Mousepad is 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 following features * Complete support for UTF-8 text * Cut/Copy/Paste and Select All text * Search and Replace * Font selecton * Word Wrap * Character coding selection * Auto character coding detection (UTF-8 and some codesets) * Manual codeset setting * Infinite Undo/Redo by word * Auto Indent * Multi-line Indent * Display line numbers * Drag and Drop * Printing

We can use yum or dnf to install mousepad on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install mousepad.

Install mousepad on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install mousepad

Install mousepad on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install mousepad

How To Uninstall mousepad on CentOS 7

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

sudo dnf remove mousepad

References

Summary

In this tutorial we learn how to install mousepad on CentOS 7 using yum and dnf.