How To Install gcal on Ubuntu 18.04
Introduction
In this tutorial we learn how to install gcal on Ubuntu 18.04.
What is gcal
gcal is:
Gcal displays a calendar for a month or a year, eternal holiday lists and fixed date lists, in many ways. The program correctly omits the dates that were skipped when the current Gregorian calendar replaced the earlier Julian calendar.
Apart from the usual and well known calendar functions like the output of a month or a year calendar sheet, or the output of an eternal holiday list, Gcal offers the facility to display fixed dates on the day of their occurrence and to remind or inform the user about them. So it is possible for users to receive an on-screen notification, at bootup or login, of all holidays or appointments which take place on that day. Notification by electronic mail is also possible.
There are three methods to install gcal 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 gcal Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install gcal using apt-get by running the following command:
sudo apt-get -y install gcal
Install gcal Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install gcal using apt by running the following command:
sudo apt -y install gcal
Install gcal 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 gcal using aptitude by running the following command:
sudo aptitude -y install gcal
How To Uninstall gcal on Ubuntu 18.04
To uninstall only the gcal package we can use the following command:
sudo apt-get remove gcal
Uninstall gcal And Its Dependencies
To uninstall gcal and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove gcal
Remove gcal Configurations and Data
To remove gcal configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge gcal
Remove gcal configuration, data, and all of its dependencies
We can use the following command to remove gcal configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge gcal
References
Summary
In this tutorial we learn how to install gcal package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.