How To Install python-logbook on CentOS 7
Introduction
In this tutorial we learn how to install python-logbook on CentOS 7.
What is python-logbook
Logbook is a logging system for Python that replaces the standard library’s logging module. It was designed with both complex and simple applications and mind and the idea to make logging fun. What makes it fun? What about getting log messages on your phone or desktop notification system? Logbook can do that.
We can use yum or dnf to install python-logbook on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-logbook.
Install python-logbook on CentOS 7 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install python-logbook using yum by running the following command:
sudo yum -y install python-logbook
Install python-logbook 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 python-logbook using dnf by running the following command:
sudo dnf -y install python-logbook
How To Uninstall python-logbook on CentOS 7
To uninstall only the python-logbook package we can use the following command:
sudo dnf remove python-logbook
References
Summary
In this tutorial we learn how to install python-logbook on CentOS 7 using yum and dnf.