114

How can I install GTK+ 3.0 and use that instead of GTK+ 2.24?

Eliah Kagan
  • 119,640
dlin
  • 3,900

3 Answers3

285

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
Eliah Kagan
  • 119,640
Thomio
  • 3,479
27

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.

Timo
  • 4,700
3

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