How To Install gtk-sharp2 on Fedora 36

In this tutorial we learn how to install gtk-sharp2 in Fedora 36. gtk-sharp2 is GTK+ and GNOME bindings for Mono

Introduction

In this tutorial we learn how to install gtk-sharp2 on Fedora 36.

What is gtk-sharp2

This package provides a library that allows you to build fully native graphical GNOME applications using Mono. Gtk# is a binding to GTK+, the cross platform user interface toolkit used in GNOME. It includes bindings for Gtk, Atk, Pango, Gdk.

We can use yum or dnf to install gtk-sharp2 on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install gtk-sharp2.

Install gtk-sharp2 on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install gtk-sharp2 using dnf by running the following command:

sudo dnf -y install gtk-sharp2

Install gtk-sharp2 on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install gtk-sharp2 using yum by running the following command:

sudo yum -y install gtk-sharp2

How To Uninstall gtk-sharp2 on Fedora 36

To uninstall only the gtk-sharp2 package we can use the following command:

sudo dnf remove gtk-sharp2

gtk-sharp2 Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/59
/usr/lib/.build-id/59/1c75a8387c313026b2002d054603bb33291588
/usr/lib/.build-id/81
/usr/lib/.build-id/81/ce7f9ca8a3c0e6a3725663ad469b7f5c01311a
/usr/lib/.build-id/87
/usr/lib/.build-id/87/82fc8759c3b882166d02b9419a0eb1b39f7131
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/5850f1697ced5de25734a7046cfb7a8e3522b1
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/57d2eb88b064838839eba91b762829aaa9c1c7
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/1f4e7181aae5244e377094f30caa8429a63e43
/usr/lib/gtk-sharp-2.0
/usr/lib/mono/gac
/usr/lib/mono/gac/atk-sharp
/usr/lib/mono/gac/atk-sharp/2.12.0.0__35e10195dab3c99f
/usr/lib/mono/gac/atk-sharp/2.12.0.0__35e10195dab3c99f/atk-sharp.dll
/usr/lib/mono/gac/atk-sharp/2.12.0.0__35e10195dab3c99f/atk-sharp.dll.config
/usr/lib/mono/gac/gdk-sharp
/usr/lib/mono/gac/gdk-sharp/2.12.0.0__35e10195dab3c99f
/usr/lib/mono/gac/gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll
/usr/lib/mono/gac/gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll.config
/usr/lib/mono/gac/glade-sharp
/usr/lib/mono/gac/glade-sharp/2.12.0.0__35e10195dab3c99f
/usr/lib/mono/gac/glade-sharp/2.12.0.0__35e10195dab3c99f/glade-sharp.dll
/usr/lib/mono/gac/glade-sharp/2.12.0.0__35e10195dab3c99f/glade-sharp.dll.config
/usr/lib/mono/gac/glib-sharp
/usr/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f
/usr/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll
/usr/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll.config
/usr/lib/mono/gac/gtk-dotnet
/usr/lib/mono/gac/gtk-dotnet/2.12.0.0__35e10195dab3c99f
/usr/lib/mono/gac/gtk-dotnet/2.12.0.0__35e10195dab3c99f/gtk-dotnet.dll
/usr/lib/mono/gac/gtk-dotnet/2.12.0.0__35e10195dab3c99f/gtk-dotnet.dll.config
/usr/lib/mono/gac/gtk-sharp
/usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f
/usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll
/usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll.config
/usr/lib/mono/gac/pango-sharp
/usr/lib/mono/gac/pango-sharp/2.12.0.0__35e10195dab3c99f
/usr/lib/mono/gac/pango-sharp/2.12.0.0__35e10195dab3c99f/pango-sharp.dll
/usr/lib/mono/gac/pango-sharp/2.12.0.0__35e10195dab3c99f/pango-sharp.dll.config
/usr/lib/mono/gac/policy.2.10.atk-sharp
/usr/lib/mono/gac/policy.2.10.atk-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.10.atk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.10.atk-sharp.dll
/usr/lib/mono/gac/policy.2.10.atk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.10.config
/usr/lib/mono/gac/policy.2.10.gdk-sharp
/usr/lib/mono/gac/policy.2.10.gdk-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.10.gdk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.10.config
/usr/lib/mono/gac/policy.2.10.gdk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.10.gdk-sharp.dll
/usr/lib/mono/gac/policy.2.10.glade-sharp
/usr/lib/mono/gac/policy.2.10.glade-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.10.glade-sharp/0.0.0.0__35e10195dab3c99f/policy.2.10.config
/usr/lib/mono/gac/policy.2.10.glade-sharp/0.0.0.0__35e10195dab3c99f/policy.2.10.glade-sharp.dll
/usr/lib/mono/gac/policy.2.10.glib-sharp
/usr/lib/mono/gac/policy.2.10.glib-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.10.glib-sharp/0.0.0.0__35e10195dab3c99f/policy.2.10.config
/usr/lib/mono/gac/policy.2.10.glib-sharp/0.0.0.0__35e10195dab3c99f/policy.2.10.glib-sharp.dll
/usr/lib/mono/gac/policy.2.10.gtk-dotnet
/usr/lib/mono/gac/policy.2.10.gtk-dotnet/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.10.gtk-dotnet/0.0.0.0__35e10195dab3c99f/policy.2.10.config
/usr/lib/mono/gac/policy.2.10.gtk-dotnet/0.0.0.0__35e10195dab3c99f/policy.2.10.gtk-dotnet.dll
/usr/lib/mono/gac/policy.2.10.gtk-sharp
/usr/lib/mono/gac/policy.2.10.gtk-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.10.gtk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.10.config
/usr/lib/mono/gac/policy.2.10.gtk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.10.gtk-sharp.dll
/usr/lib/mono/gac/policy.2.10.pango-sharp
/usr/lib/mono/gac/policy.2.10.pango-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.10.pango-sharp/0.0.0.0__35e10195dab3c99f/policy.2.10.config
/usr/lib/mono/gac/policy.2.10.pango-sharp/0.0.0.0__35e10195dab3c99f/policy.2.10.pango-sharp.dll
/usr/lib/mono/gac/policy.2.4.atk-sharp
/usr/lib/mono/gac/policy.2.4.atk-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.4.atk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.4.atk-sharp.dll
/usr/lib/mono/gac/policy.2.4.atk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.4.config
/usr/lib/mono/gac/policy.2.4.gdk-sharp
/usr/lib/mono/gac/policy.2.4.gdk-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.4.gdk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.4.config
/usr/lib/mono/gac/policy.2.4.gdk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.4.gdk-sharp.dll
/usr/lib/mono/gac/policy.2.4.glade-sharp
/usr/lib/mono/gac/policy.2.4.glade-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.4.glade-sharp/0.0.0.0__35e10195dab3c99f/policy.2.4.config
/usr/lib/mono/gac/policy.2.4.glade-sharp/0.0.0.0__35e10195dab3c99f/policy.2.4.glade-sharp.dll
/usr/lib/mono/gac/policy.2.4.glib-sharp
/usr/lib/mono/gac/policy.2.4.glib-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.4.glib-sharp/0.0.0.0__35e10195dab3c99f/policy.2.4.config
/usr/lib/mono/gac/policy.2.4.glib-sharp/0.0.0.0__35e10195dab3c99f/policy.2.4.glib-sharp.dll
/usr/lib/mono/gac/policy.2.4.gtk-dotnet
/usr/lib/mono/gac/policy.2.4.gtk-dotnet/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.4.gtk-dotnet/0.0.0.0__35e10195dab3c99f/policy.2.4.config
/usr/lib/mono/gac/policy.2.4.gtk-dotnet/0.0.0.0__35e10195dab3c99f/policy.2.4.gtk-dotnet.dll
/usr/lib/mono/gac/policy.2.4.gtk-sharp
/usr/lib/mono/gac/policy.2.4.gtk-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.4.gtk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.4.config
/usr/lib/mono/gac/policy.2.4.gtk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.4.gtk-sharp.dll
/usr/lib/mono/gac/policy.2.4.pango-sharp
/usr/lib/mono/gac/policy.2.4.pango-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.4.pango-sharp/0.0.0.0__35e10195dab3c99f/policy.2.4.config
/usr/lib/mono/gac/policy.2.4.pango-sharp/0.0.0.0__35e10195dab3c99f/policy.2.4.pango-sharp.dll
/usr/lib/mono/gac/policy.2.6.atk-sharp
/usr/lib/mono/gac/policy.2.6.atk-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.6.atk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.6.atk-sharp.dll
/usr/lib/mono/gac/policy.2.6.atk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.6.config
/usr/lib/mono/gac/policy.2.6.gdk-sharp
/usr/lib/mono/gac/policy.2.6.gdk-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.6.gdk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.6.config
/usr/lib/mono/gac/policy.2.6.gdk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.6.gdk-sharp.dll
/usr/lib/mono/gac/policy.2.6.glade-sharp
/usr/lib/mono/gac/policy.2.6.glade-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.6.glade-sharp/0.0.0.0__35e10195dab3c99f/policy.2.6.config
/usr/lib/mono/gac/policy.2.6.glade-sharp/0.0.0.0__35e10195dab3c99f/policy.2.6.glade-sharp.dll
/usr/lib/mono/gac/policy.2.6.glib-sharp
/usr/lib/mono/gac/policy.2.6.glib-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.6.glib-sharp/0.0.0.0__35e10195dab3c99f/policy.2.6.config
/usr/lib/mono/gac/policy.2.6.glib-sharp/0.0.0.0__35e10195dab3c99f/policy.2.6.glib-sharp.dll
/usr/lib/mono/gac/policy.2.6.gtk-dotnet
/usr/lib/mono/gac/policy.2.6.gtk-dotnet/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.6.gtk-dotnet/0.0.0.0__35e10195dab3c99f/policy.2.6.config
/usr/lib/mono/gac/policy.2.6.gtk-dotnet/0.0.0.0__35e10195dab3c99f/policy.2.6.gtk-dotnet.dll
/usr/lib/mono/gac/policy.2.6.gtk-sharp
/usr/lib/mono/gac/policy.2.6.gtk-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.6.gtk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.6.config
/usr/lib/mono/gac/policy.2.6.gtk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.6.gtk-sharp.dll
/usr/lib/mono/gac/policy.2.6.pango-sharp
/usr/lib/mono/gac/policy.2.6.pango-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.6.pango-sharp/0.0.0.0__35e10195dab3c99f/policy.2.6.config
/usr/lib/mono/gac/policy.2.6.pango-sharp/0.0.0.0__35e10195dab3c99f/policy.2.6.pango-sharp.dll
/usr/lib/mono/gac/policy.2.8.atk-sharp
/usr/lib/mono/gac/policy.2.8.atk-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.8.atk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.8.atk-sharp.dll
/usr/lib/mono/gac/policy.2.8.atk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.8.config
/usr/lib/mono/gac/policy.2.8.gdk-sharp
/usr/lib/mono/gac/policy.2.8.gdk-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.8.gdk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.8.config
/usr/lib/mono/gac/policy.2.8.gdk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.8.gdk-sharp.dll
/usr/lib/mono/gac/policy.2.8.glade-sharp
/usr/lib/mono/gac/policy.2.8.glade-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.8.glade-sharp/0.0.0.0__35e10195dab3c99f/policy.2.8.config
/usr/lib/mono/gac/policy.2.8.glade-sharp/0.0.0.0__35e10195dab3c99f/policy.2.8.glade-sharp.dll
/usr/lib/mono/gac/policy.2.8.glib-sharp
/usr/lib/mono/gac/policy.2.8.glib-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.8.glib-sharp/0.0.0.0__35e10195dab3c99f/policy.2.8.config
/usr/lib/mono/gac/policy.2.8.glib-sharp/0.0.0.0__35e10195dab3c99f/policy.2.8.glib-sharp.dll
/usr/lib/mono/gac/policy.2.8.gtk-dotnet
/usr/lib/mono/gac/policy.2.8.gtk-dotnet/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.8.gtk-dotnet/0.0.0.0__35e10195dab3c99f/policy.2.8.config
/usr/lib/mono/gac/policy.2.8.gtk-dotnet/0.0.0.0__35e10195dab3c99f/policy.2.8.gtk-dotnet.dll
/usr/lib/mono/gac/policy.2.8.gtk-sharp
/usr/lib/mono/gac/policy.2.8.gtk-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.8.gtk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.8.config
/usr/lib/mono/gac/policy.2.8.gtk-sharp/0.0.0.0__35e10195dab3c99f/policy.2.8.gtk-sharp.dll
/usr/lib/mono/gac/policy.2.8.pango-sharp
/usr/lib/mono/gac/policy.2.8.pango-sharp/0.0.0.0__35e10195dab3c99f
/usr/lib/mono/gac/policy.2.8.pango-sharp/0.0.0.0__35e10195dab3c99f/policy.2.8.config
/usr/lib/mono/gac/policy.2.8.pango-sharp/0.0.0.0__35e10195dab3c99f/policy.2.8.pango-sharp.dll
/usr/lib/mono/gtk-sharp-2.0
/usr/lib/mono/gtk-sharp-2.0/atk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/gdk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/glade-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/glib-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/gtk-dotnet.dll
/usr/lib/mono/gtk-sharp-2.0/gtk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/pango-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.10.atk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.10.gdk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.10.glade-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.10.glib-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.10.gtk-dotnet.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.10.gtk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.10.pango-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.4.atk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.4.gdk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.4.glade-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.4.glib-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.4.gtk-dotnet.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.4.gtk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.4.pango-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.6.atk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.6.gdk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.6.glade-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.6.glib-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.6.gtk-dotnet.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.6.gtk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.6.pango-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.8.atk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.8.gdk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.8.glade-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.8.glib-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.8.gtk-dotnet.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.8.gtk-sharp.dll
/usr/lib/mono/gtk-sharp-2.0/policy.2.8.pango-sharp.dll
/usr/lib64/libatksharpglue-2.so
/usr/lib64/libgdksharpglue-2.so
/usr/lib64/libgladesharpglue-2.so
/usr/lib64/libglibsharpglue-2.so
/usr/lib64/libgtksharpglue-2.so
/usr/lib64/libpangosharpglue-2.so
/usr/share/doc/gtk-sharp2
/usr/share/doc/gtk-sharp2/COPYING
/usr/share/doc/gtk-sharp2/ChangeLog
/usr/share/doc/gtk-sharp2/README

References

Summary

In this tutorial we learn how to install gtk-sharp2 on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).