How To Install uprecords-cgi on Debian 9

In this tutorial we learn how to install uprecords-cgi on Debian 9. uprecords-cgi is utility to track high uptimes - CGI script

Introduction

In this tutorial we learn how to install uprecords-cgi on Debian 9.

What is uprecords-cgi

uprecords-cgi is:

The uptime daemon tracks a system’s highest uptimes via boot IDs, using the system boot time to keep sessions apart from each other. It features a console program to display statistics, and can send mail if a milestone or a new record is reached.

This package provides a CGI script that produces an HTML report containing all the highest uptimes from the uptimed database.

There are three methods to install uprecords-cgi on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install uprecords-cgi Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install uprecords-cgi using apt-get by running the following command:

sudo apt-get -y install uprecords-cgi

Install uprecords-cgi Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install uprecords-cgi using apt by running the following command:

sudo apt -y install uprecords-cgi

Install uprecords-cgi 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install uprecords-cgi using aptitude by running the following command:

sudo aptitude -y install uprecords-cgi

How To Uninstall uprecords-cgi on Debian 9

To uninstall only the uprecords-cgi package we can use the following command:

sudo apt-get remove uprecords-cgi

Uninstall uprecords-cgi And Its Dependencies

To uninstall uprecords-cgi and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove uprecords-cgi

Remove uprecords-cgi Configurations and Data

To remove uprecords-cgi configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge uprecords-cgi

Remove uprecords-cgi configuration, data, and all of its dependencies

We can use the following command to remove uprecords-cgi configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge uprecords-cgi

Dependencies

uprecords-cgi have the following dependencies:

References

Summary

In this tutorial we learn how to install uprecords-cgi package on Debian 9 using different package management tools: apt, apt-get and aptitude.