Is there a way to know which GTK version is installed using the command line?
I am working on Ubuntu 11.10.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityapt-cache policy libgtk2.0-0 libgtk-3-0
(optionally pipe to grep Installed
)
or
dpkg -l libgtk2.0-0 libgtk-3-0
dpkg --get-selections | grep 'libgtk.*bin'
which today will likely show gtk2, gtk3, and gtk4, then you can pass those to dpkg -l
, for example, dpkg -l libgtk2.0-bin libgtk-3-bin libgtk-4-bin
dpkg-query -W libgtk*bin
Jun 19 at 21:48
--get-selections will show you the installed packages
dpkg --get-selections | grep gtk
libgtk2.0-bin libgtk-3-bin libgtk-4-bin
among many other GTK packages.
Aug 11, 2022 at 18:59
Try this:
dpkg -l libgtk2.0-0 libgtk-3-0
This will give info for both GTK 2 and 3.
Try: dpkg-query -W libgtk-3-bin
# Gives version as 3.10.8, separated on the left by a tab, and on the right by a ~
$ dpkg-query -W libgtk-3-bin
libgtk-3-bin 3.10.8~8+qiana
# An associated package also gives the package architecture [for me]
$ dpkg-query -W libgtk-3-0
libgtk-3-0:amd64 3.10.8~8+qiana
Try these commands
gtk-launch --version
gtk3-launch --version
gtk4-launch --version
dpkg -l "*gtk*" | grep ii