How To Install gshutdown on Ubuntu 22.04

In this tutorial we learn how to install gshutdown on Ubuntu 22.04. gshutdown is Graphical shutdown utility and shutdown timer

Introduction

In this tutorial we learn how to install gshutdown on Ubuntu 22.04.

What is gshutdown

gshutdown is:

GShutdown is a utility which allows you to schedule the shutdown or restart of your computer. With it you can simply and quickly choose the turn off time at either a specific time or after a countdown.

The graphical user interface uses Gtk+2.

There are three methods to install gshutdown on Ubuntu 22.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 gshutdown Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install gshutdown

Install gshutdown Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install gshutdown

Install gshutdown 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 gshutdown using aptitude by running the following command:

sudo aptitude -y install gshutdown

How To Uninstall gshutdown on Ubuntu 22.04

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

sudo apt-get remove gshutdown

Uninstall gshutdown And Its Dependencies

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

sudo apt-get -y autoremove gshutdown

Remove gshutdown Configurations and Data

To remove gshutdown configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge gshutdown

Remove gshutdown configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge gshutdown

References

Summary

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