How To Install mousepad on CentOS 8

mousepad is Simple text editor for Xfce desktop environment

Introduction

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

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 8. In this tutorial we discuss both methods but you only need to choose one of method to install mousepad.

Install mousepad on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install mousepad

Install mousepad on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install mousepad

How To Uninstall mousepad on CentOS 8

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

sudo dnf remove mousepad

mousepad Package Contents on CentOS 8

/usr/bin/mousepad
/usr/lib/.build-id
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/cd7700f9243a2dfb89446d4e93fb94f7300c83
/usr/share/applications/mousepad.desktop
/usr/share/doc/mousepad
/usr/share/doc/mousepad/AUTHORS
/usr/share/doc/mousepad/NEWS
/usr/share/doc/mousepad/README
/usr/share/doc/mousepad/THANKS
/usr/share/doc/mousepad/TODO
/usr/share/glib-2.0/schemas/org.xfce.mousepad.gschema.xml
/usr/share/licenses/mousepad
/usr/share/licenses/mousepad/COPYING
/usr/share/locale/ar/LC_MESSAGES/mousepad.mo
/usr/share/locale/ast/LC_MESSAGES/mousepad.mo
/usr/share/locale/be/LC_MESSAGES/mousepad.mo
/usr/share/locale/bg/LC_MESSAGES/mousepad.mo
/usr/share/locale/ca/LC_MESSAGES/mousepad.mo
/usr/share/locale/cs/LC_MESSAGES/mousepad.mo
/usr/share/locale/da/LC_MESSAGES/mousepad.mo
/usr/share/locale/de/LC_MESSAGES/mousepad.mo
/usr/share/locale/el/LC_MESSAGES/mousepad.mo
/usr/share/locale/en_AU/LC_MESSAGES/mousepad.mo
/usr/share/locale/en_GB/LC_MESSAGES/mousepad.mo
/usr/share/locale/es/LC_MESSAGES/mousepad.mo
/usr/share/locale/eu/LC_MESSAGES/mousepad.mo
/usr/share/locale/fi/LC_MESSAGES/mousepad.mo
/usr/share/locale/fr/LC_MESSAGES/mousepad.mo
/usr/share/locale/gl/LC_MESSAGES/mousepad.mo
/usr/share/locale/he/LC_MESSAGES/mousepad.mo
/usr/share/locale/hr/LC_MESSAGES/mousepad.mo
/usr/share/locale/hu/LC_MESSAGES/mousepad.mo
/usr/share/locale/hy_AM/LC_MESSAGES/mousepad.mo
/usr/share/locale/id/LC_MESSAGES/mousepad.mo
/usr/share/locale/ie/LC_MESSAGES/mousepad.mo
/usr/share/locale/is/LC_MESSAGES/mousepad.mo
/usr/share/locale/it/LC_MESSAGES/mousepad.mo
/usr/share/locale/ja/LC_MESSAGES/mousepad.mo
/usr/share/locale/kk/LC_MESSAGES/mousepad.mo
/usr/share/locale/ko/LC_MESSAGES/mousepad.mo
/usr/share/locale/lt/LC_MESSAGES/mousepad.mo
/usr/share/locale/ms/LC_MESSAGES/mousepad.mo
/usr/share/locale/nb/LC_MESSAGES/mousepad.mo
/usr/share/locale/nl/LC_MESSAGES/mousepad.mo
/usr/share/locale/nn/LC_MESSAGES/mousepad.mo
/usr/share/locale/oc/LC_MESSAGES/mousepad.mo
/usr/share/locale/pl/LC_MESSAGES/mousepad.mo
/usr/share/locale/pt/LC_MESSAGES/mousepad.mo
/usr/share/locale/pt_BR/LC_MESSAGES/mousepad.mo
/usr/share/locale/ro/LC_MESSAGES/mousepad.mo
/usr/share/locale/ru/LC_MESSAGES/mousepad.mo
/usr/share/locale/sk/LC_MESSAGES/mousepad.mo
/usr/share/locale/sl/LC_MESSAGES/mousepad.mo
/usr/share/locale/sq/LC_MESSAGES/mousepad.mo
/usr/share/locale/sr/LC_MESSAGES/mousepad.mo
/usr/share/locale/sv/LC_MESSAGES/mousepad.mo
/usr/share/locale/te/LC_MESSAGES/mousepad.mo
/usr/share/locale/th/LC_MESSAGES/mousepad.mo
/usr/share/locale/tr/LC_MESSAGES/mousepad.mo
/usr/share/locale/ug/LC_MESSAGES/mousepad.mo
/usr/share/locale/uk/LC_MESSAGES/mousepad.mo
/usr/share/locale/zh_CN/LC_MESSAGES/mousepad.mo
/usr/share/locale/zh_TW/LC_MESSAGES/mousepad.mo
/usr/share/metainfo/mousepad.appdata.xml
/usr/share/polkit-1/actions/org.xfce.mousepad.policy

References

Summary

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