How To Install showfsck on Ubuntu 18.04

In this tutorial we learn how to install showfsck on Ubuntu 18.04. showfsck is show the number of reboots before next forced fsck

Introduction

In this tutorial we learn how to install showfsck on Ubuntu 18.04.

What is showfsck

showfsck is:

This package displays during startup and halt the number of mounts for each ext2/3 partition before an fsck will be forced, so that the user will not be suprised.

Very useful for people that often reboot (laptop users for example)

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

Install showfsck Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install showfsck

Install showfsck Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install showfsck using apt by running the following command:

sudo apt -y install showfsck

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

sudo aptitude update

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

sudo aptitude -y install showfsck

How To Uninstall showfsck on Ubuntu 18.04

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

sudo apt-get remove showfsck

Uninstall showfsck And Its Dependencies

To uninstall showfsck and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove showfsck

Remove showfsck Configurations and Data

To remove showfsck configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge showfsck

Remove showfsck configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge showfsck

References

Summary

In this tutorial we learn how to install showfsck package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.