Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 43707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:32:15+00:00 2026-05-10T15:32:15+00:00

I need to determine which version of GTK+ is installed on Ubuntu Man does

  • 0

I need to determine which version of GTK+ is installed on Ubuntu

Man does not seem to help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T15:32:16+00:00Added an answer on May 10, 2026 at 3:32 pm

    This suggestion will tell you which minor version of 2.0 is installed. Different major versions will have different package names because they can co-exist on the system (in order to support applications built with older versions).

    Even for development files, which normally would only let you have one version on the system, you can have a version of gtk 1.x and a version of gtk 2.0 on the same system (the include files are in directories called gtk-1.2 or gtk-2.0).

    So in short there isn’t a simple answer to ‘what version of GTK is on the system’. But…

    Try something like:

    dpkg -l libgtk* | grep -e '^i' | grep -e 'libgtk-*[0-9]' 

    to list all the libgtk packages, including -dev ones, that are on your system. dpkg -l will list all the packages that dpkg knows about, including ones that aren’t currently installed, so I’ve used grep to list only ones that are installed (line starts with i).

    Alternatively, and probably better if it’s the version of the headers etc that you’re interested in, use pkg-config:

    pkg-config --modversion gtk+ 

    will tell you what version of GTK 1.x development files are installed, and

    pkg-config --modversion gtk+-2.0 

    will tell you what version of GTK 2.0. The old 1.x version also has its own gtk-config program that does the same thing. Similarly, for GTK+ 3:

    pkg-config --modversion gtk+-3.0 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to determine which version of browser the user is using, however compatibility
I have a large list of email addresses, and I need to determine which
I am writing a vim plugin in which i need to determine all those
I need OCR library(preferably in Java), which will be able to determine digit visualized
I need to determine whether or not two sets contains exactly the same elements.
I need to determine the clients .NET framework version in my web application. I'm
I need to determine whether a particular system has 32-bit Java installed. I'm doing
I have a list of websites and I need to determine which ones are
Possible Duplicate: Determine framework (CLR) version of assembly I have a library/DLL file which
I need to programatically determine whether .NET 3.5 is installed. I thought it would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.