54

Is there a way to know which GTK version is installed using the command line?

I am working on Ubuntu 11.10.

  • dpkg -l "*gtk*" | grep ii – Anonymous Nov 11 '11 at 23:51
  • @Anonymous: that returns 50 lines on my Debian system. – Zayne S Halsall Jun 21 '14 at 20:59
  • 1
    @ZayneSHalsall try the answer below that have  this sign – Black Block Jun 24 '14 at 12:20
50

apt-cache policy libgtk2.0-0 libgtk-3-0 (optionally pipe to grep Installed)

or

dpkg -l libgtk2.0-0 libgtk-3-0

6

Try this:

dpkg -l libgtk2.0-0 libgtk-3-0

This will give info for both GTK 2 and 3.

5

--get-selections will show you the installed packages

dpkg --get-selections | grep gtk
3
  1. Open Synaptic Package Manager: enter image description here

  2. Under "Quick filter" enter "libgtk-3".

  3. Gtk3 libraries are contained in "libgtk-3-0". You may want to select it for convenience. Your installed version appears in the column "Installed version". If you need additional information press the button "Properties".
2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.