PDA

View Full Version : [ubuntu] [SOLVED] how do you figure out gtk version



suicidejack
June 26th, 2008, 10:56 PM
I'm trying to figure out what GTK version I am running. I can't find anything online for this.

ibutho
June 26th, 2008, 11:39 PM
If you installed gtk via the package manager, you can use Add/Remove software or Synaptic to check the gtk version.

Forlong
June 27th, 2008, 01:20 PM
I'm trying to figure out what GTK version I am running. I can't find anything online for this.
What do you mean by "GTK version" and why do you need to know that?

suicidejack
June 27th, 2008, 03:49 PM
as in what version number i am running on my comp. i know i have 2.something but i'm not sure which one i have. mostly interested in this for possible theme creation. plus i figured its a good thing to know. a shell command should work for this - i just can't figured out what command to use.

as to synaptic it only tells me that i have the 2.x gtk engine, etc. no relaly detailed info unless i am looking in the wrong place...

ibutho
June 27th, 2008, 03:57 PM
Search for libgtk2.0. You should see version 2.12.9.

unutbu
June 27th, 2008, 03:57 PM
% COLUMNS=150 dpkg --list libgtk2.0-0
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-===============================-===============================-================================================== ============================
ii libgtk2.0-0 2.12.0-1ubuntu3 The GTK+ graphical user interface library



% COLUMNS=150 dpkg --list libgtk2.0-0 | egrep '^ii' | awk '{print $3}'
2.12.0-1ubuntu3