How To Install tenshi on Ubuntu 21.04
In this guide, we’ll discuss How To Install tenshi on Ubuntu 21.04.
Also, we will demonstrate how to uninstall and update
tenshi
.
One-liner install command
For those in a hurry, here's a one-line installation command:
sudo apt-get update && sudo apt -y install tenshi
But if you are interested in the detailed steps with descriptions, the following information is for you.
What is tenshi
and what are
the ways to install it?
Short description: log monitoring and reporting tool
Before beginning this tutorial, you will need access to a server or computer running Ubuntu 21.04. This guide was written specifically with a server running Ubuntu 21.04 in mind, although it should also work on older, supported versions of the operating system.
Also, make sure you are running a regular, non-root user with sudo privileges configured on your server. When you have an account available, log in as your non-root user to begin.
There are several ways to install tenshi on Ubuntu 21.04. You can use (links are clickable):
In the following sections, we will describe each method in detail. You can choose one of them or refer to the recommended one.
Install tenshi using apt-get
First, update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt-get
database,
You can install tenshi using apt
by running the
following command:
sudo apt -y install tenshi
Install tenshi using apt
Because tenshi is available in Ubuntu 21.04’s default repositories, it is possible to install it from these repositories using the apt packaging system.
To begin, update apt database with apt
using the following command.
sudo apt update
After updating apt
database,
You can install tenshi using apt
by running the
following command:
sudo apt -y install tenshi
Install tenshi using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu 21.04. Update apt database with aptitude using the following command.
sudo aptitude update
After updating aptitude
database,
You can install tenshi by running the following command:
sudo aptitude -y install tenshi
How to upgrade (update) a single package tenshi using apt-get?
First, you will need to update packages index. Run update
command as
usual:
sudo apt-get update
Next, to upgrade only the tenshi, e.g. single package, you should use the following format with the apt-get command/apt command:
sudo apt-get --only-upgrade install tenshi
Note that this command will not install any new packages! If you wish to install the
package if it doesn't exist you may leave out --only-upgrade
part.
It's Good to Know:
sudo apt-get install tenshi
This will upgrade the package even if is already installed.
How To Uninstall tenshi from Ubuntu 21.04
To uninstall only the tenshi
package you can execute
the
following command:
sudo apt-get remove tenshi
Uninstall tenshi and all its dependencies
To uninstall tenshi and its dependencies that are no longer needed by Ubuntu 21.04, you can use the command below:
sudo apt-get -y autoremove tenshi
Remove tenshi with all configurations and data
To remove tenshi configuration and data
from your system you can run the following purge
command:
sudo apt-get -y purge tenshi
Remove tenshi completely (configurations, data and all of its dependencies)
And lastly, you can run the next command to remove absolutely everything related to tenshi package, e.g.: configurations, data and all of its dependencies. Just use this command:
sudo apt-get -y autoremove --purge tenshi
Extra info and code examples
Tenshi is a log monitoring program, designed to watch one or more log files for lines matching user defined regular expressions and report on the matches. The regular expressions are assigned to queues which have an alert interval and a list of mail recipients. Queues can be set to send a notification as soon as there is a log line assigned to it, or to send periodic reports. Additionally, uninteresting fields in the log lines (such as PID numbers) can be masked with the standard regular expression grouping operators ( ). This allows cleaner and more readable reports. All reports are separated by hostname and all messages are condensed when possible. The program reads a configuration file and then forks a daemon for monitoring the specified log files.
- Maintainer: Ignace Mouzannar
- Sources url: http://dev.inversepath.com/trac/tenshi
- Section/Category: admin
Conclusion
You now have a full guide on how to install tenshi
using apt, apt-get and aptitude tools.
Also, we showed how to update as a single package and different ways to uninstall
the tenshi from Ubuntu 21.04.