Here’s a quick guide on finding the GNOME desktop (or Shell) version via the command line and GUI.
Find GNOME Shell Version
You need to find the GNOME version number you are running for many use cases. For example, if you are a developer, you might want to find out compatible packages and ensure that all the dependencies are met.
So, to do that, here’s how you can find the GNOME version number.
Firstly, open a terminal. And run the following command.
It will give you the GNOME shell version number currently running in your system.
Similarly, if you are using the desktop environment, then open Settings. Then click on the About tab.
Here you can see the GNOME Version at the bottom.
There might be situations where you use a different desktop environment (such as MATE or Xfce), which also uses GNOME components and packages.
Those desktop environments don’t use the gnome-shell package, of course. So, if you want to find out the GNOME packages and their version used in those specific cases, you can see the contents of this file below. This is for Ubuntu and Debian-based distros only.
For example, the file contains a below GNOME package.
Now that you know the package name, you can further find out its version installed in your system using the below command. Similar DNF command you can find in this guide for RPM-based distros.
apt show gnome-weather
debugpoint@debugpoint-mate:~$ apt show gnome-weather
Maintainer: Ubuntu Developers firstname.lastname@example.org
Original-Maintainer: Debian GNOME Maintainers email@example.com
This guide teaches you how to find the version of GNOME and some additional methods.