How can I install GTK+ 3.0 and use that instead of GTK+ 2.24?
3 Answers
To use gtk2 or gtk3 apps you don't need to install anything. But, if you want to develop (or even just compile) apps this is what you're looking for:
sudo apt-get install libgtk-3-dev
-
Is this true for Windows and MacOS as well (or just for Ubuntu or GNU/Linux?)– sunyataOct 31, 2016 at 1:03
-
10
-
11
GTK3 is installed by default, please don't download and compile from the GTK website.
If you want to use GTK3 yourself, compile against that instead GTK2, or use PyGObject instead of PyGTK if you're using Python.
If you want all programs to use GTK3 instead of GTK2, it won't work, it's a job for the application developers to port their application.
-
1The package name changed a bit, try this: dpkg -l libgtk-[0-9]* | grep ^i– TimoFeb 4, 2012 at 11:49
-
Also note that GTK2 and GTK3 are parellel installable. So it's not that you are using one or the other, it's the applications that choose which version.– TimoFeb 4, 2012 at 11:51
-
@Nick if you have questions about specific apps, it would be better to ask a new question. We wouldn't want useful information to get lost in the comments. :) Feb 5, 2012 at 0:24
-
Wasn't installed by default on my Ubuntu 20.04 LTS. Used below answer. Aug 20, 2020 at 16:24
If you already have an older version of GTK and you want to upgrade it then you can do the following:
sudo add-apt-repository ppa:gnome3-team/gnome3-staging
sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt update
sudo apt dist-upgrade