Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I want to know my GTK version (i am working on Ubuntu 11.10) using a command line or any thing

share|improve this question
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
@ZayneSHalsall try the answer below that have  this sign – Black Block Jun 24 '14 at 12:20

4 Answers 4

up vote 20 down vote accepted

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


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

share|improve this answer
man you miss t in second libgtk-3-0 – Black Block Nov 12 '11 at 12:45
@Naruto, thanks. Fixed now. – zpletan Nov 12 '11 at 14:24

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
share|improve this answer

--get-selections will show you the installed packages

dpkg --get-selections | grep gtk
share|improve this answer

Try this: dpkg -l libgtk2.0-0 libgtk-3-0 This will give info for both GTK 2 and 3.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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