How To Install multitail on CentOS 8

multitail is View one or multiple files like tail but with multiple windows

Introduction

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

What is multitail

MultiTail lets you view one or multiple files like the original tail program. The difference is that it creates multiple windows on your console (with ncurses). It can also monitor wildcards matching the wildcard has a more recent modification date, it will automatically switch to that file. That way you can, for example, monitor a complete directory of files. Merging of 2 or even more logfiles is possible. It can also use colors while displaying the logfiles (through regular expressions), for faster recognition of what is important and what not. Multitail can also filter lines (again with regular expressions) and has interactive menus for editing given regular expressions and deleting and adding windows. One can also have windows with the output of shell scripts and other software. When viewing the output of external software, MultiTail can mimic the functionality of tools like ‘watch’ and such.

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

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

sudo dnf -y install multitail

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

sudo yum -y install multitail

How To Uninstall multitail on CentOS 8

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

sudo dnf remove multitail

multitail Package Contents on CentOS 8

/etc/multitail
/etc/multitail.conf
/etc/multitail/convert-geoip.pl
/etc/multitail/convert-simple.pl
/usr/bin/multitail
/usr/lib/.build-id
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/651f1f28116c6e1da428b68034e90aced40e0e
/usr/share/doc/multitail
/usr/share/doc/multitail/colors-example.pl
/usr/share/doc/multitail/colors-example.sh
/usr/share/doc/multitail/manual-nl.html
/usr/share/doc/multitail/manual.html
/usr/share/doc/multitail/readme.txt
/usr/share/licenses/multitail
/usr/share/licenses/multitail/license.txt
/usr/share/man/man1/multitail.1.gz

References

Summary

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