How To Install gnome-logs on Ubuntu 18.04

In this tutorial we learn how to install gnome-logs on Ubuntu 18.04. gnome-logs is viewer for the systemd journal.

Introduction

In this tutorial we learn how to install gnome-logs on Ubuntu 18.04.

What is gnome-logs

gnome-logs is:

The GNOME Logs application is an application to view system logs (from the systemd journal) for the GNOME Desktop environment.

There are three methods to install gnome-logs 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 gnome-logs Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install gnome-logs

Install gnome-logs Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install gnome-logs

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

sudo aptitude -y install gnome-logs

How To Uninstall gnome-logs on Ubuntu 18.04

To uninstall only the gnome-logs package we can use the following command:

sudo apt-get remove gnome-logs

Uninstall gnome-logs And Its Dependencies

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

sudo apt-get -y autoremove gnome-logs

Remove gnome-logs Configurations and Data

To remove gnome-logs configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge gnome-logs

Remove gnome-logs configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge gnome-logs

References

Summary

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