Get gnome version via command

We can find gnome version by checking the name of package which was installed.

For Centos/Rhel:

[j@server01 ~]$ rpm -qa | grep -i gnome-desktop

For Debian/Ubuntu:

j@ubuntu:/usr/share/gnome$ apt list --installed | grep gnome-desktop

gnome-desktop3-data/now all [installed,upgradable to: 3.36.8-0ubuntu1]

Get gnome version from file gnome-version.xml

For gnome 3 ,the file location is :

[j@server01 ~]$ cat /usr/share/gnome/gnome-version.xml 
<?xml version="1.0"?>

For gnome 2 ,the file location is :


Get gnome version via setting panel

Click “activities” then search “about” ,below is an example of ubuntu 20.04