How To Install python-tbgrep on CentOS 7
Introduction
In this tutorial we learn how to install python-tbgrep
on CentOS 7.
What is python-tbgrep
A module & command-line tool for extracting Python tracebacks from text. $ tbgrep file1 file2 file3 $ tail -f logfile | tbgrep tbgrep can extract tracebacks from logs of various formats. For example, CherryPy starts the traceback on a line with other details (like module, timestamp, etc), but the rest of the trace starts at the beginning of the line. Apache logs, on the other hand, will prefix each line of the traceback with this information. tbgrep is designed to these kinds of situations
We can use yum
or dnf
to install python-tbgrep
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-tbgrep.
Install python-tbgrep on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install python-tbgrep
using yum
by running the following command:
Install python-tbgrep 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.
After updating yum database, We can install python-tbgrep
using dnf
by running the following command:
How To Uninstall python-tbgrep on CentOS 7
To uninstall only the python-tbgrep
package we can use the following command:
References
Summary
In this tutorial we learn how to install python-tbgrep
on CentOS 7 using yum
and dnf
.