Take the 2-minute tour ×
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
1  
@ZayneSHalsall try the answer below that have  this sign –  Black Block Jun 24 '14 at 12:20

3 Answers 3

up vote 18 down vote accepted

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

or

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

--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

 
discard

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.