In this article, we will explain how to install and use the Gnome Weather application to view weather from different cities on your Ubuntu system.
Gnome Weather is a small application that allows you to monitor the current weather conditions for your city, or anywhere in the world. It provides access to detailed forecasts, up to 7 days, with hourly details for the current and next day, using various internet services. It also optionally integrates with the GNOME Shell, allowing you to see the current conditions of the most recently searched cities by just typing its name in the Activities Overview.
We have run the commands and procedures mentioned in this article on a Ubuntu 18.04 LTS system.
Install Gnome Weather
Through the UI
For a person who does not want to open the Command Line much, installing software present in the Ubuntu repository through the UI is very simple. On your Ubuntu desktop Activities toolbar, click the Ubuntu Software icon.
In the following view, click on the search icon and enter Gnome Weather in the search bar. The search results will display the Weather application result as follows:
This is the package maintained by Ubuntu Bionic Universe repository. Click on the Weather search entry to open the following view:
Click the Install button to begin the installation process. The following authentication dialog will display for you to provide your authentication details as only an authorized user can install software on Ubuntu.
Enter your password and click the Authenticate button. After that, the installation process will begin, displaying a progress bar as follows.
Gnome Weather will then be installed to your system and you will get the following message after a successful installation:
Through the above dialog, you can choose to directly launch Weather and even Remove it immediately for whatever reason.
Through the Command Line
You can also use the Ubuntu command line, the Terminal, in order to install the Gnome Weather application.
Open the Terminal either through the Ctrl+Alt+T shortcut or the Ubuntu Application Launcher search.
Then enter the following command in order to install Gnome Weather from the official Ubuntu repository:
$ sudo apt install gnome-weather
Please note that only an authorized user( sudo) can add, remove and configure software on Ubuntu. Enter the password for sudo after which the installation procedure will begin.
The system might also prompt you with a Y/n option for the installation to begin. Please enter Y and hit enter after which Gnome Weather will be downloaded and installed on your system.
Launch and Use Gnome Weather
You can launch the Gnome Weather application through the UI from the Application Launcher as follows, or directly from the application listing.
If you want to launch the application from the Terminal, enter the following command:
$ gnome-weather
The system might ask you to grant access to your current location so that the Weather application can display its weather.
Make your choice after which the application will be launched.
Click on the Places button on the application to enter the city whose weather you want to view.
Uninstall Gnome Weather
You can remove the application through the Software manager by searching for it and then by clicking the Remove button from the following view.
Or, use the following command as sudo from the Terminal to remove the application:
$ sudo apt remove gnome-weather
Now you can view weather from all across the world through a very reliable application maintained officially by Ubuntu.