How To Install gtk-doc on Fedora 36

In this tutorial we learn how to install gtk-doc in Fedora 36. gtk-doc is API documentation generation tool for GTK+ and GNOME

Introduction

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

What is gtk-doc

gtk-doc is a tool for generating API reference documentation. It is used for generating the documentation for GTK+, GLib and GNOME.

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

Install gtk-doc 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-doc using dnf by running the following command:

sudo dnf -y install gtk-doc

Install gtk-doc 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-doc using yum by running the following command:

sudo yum -y install gtk-doc

How To Uninstall gtk-doc on Fedora 36

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

sudo dnf remove gtk-doc

gtk-doc Package Contents on Fedora 36

/usr/bin/gtkdoc-check
/usr/bin/gtkdoc-depscan
/usr/bin/gtkdoc-fixxref
/usr/bin/gtkdoc-mkdb
/usr/bin/gtkdoc-mkhtml
/usr/bin/gtkdoc-mkhtml2
/usr/bin/gtkdoc-mkman
/usr/bin/gtkdoc-mkpdf
/usr/bin/gtkdoc-rebase
/usr/bin/gtkdoc-scan
/usr/bin/gtkdoc-scangobj
/usr/bin/gtkdocize
/usr/lib64/cmake
/usr/lib64/cmake/GtkDoc
/usr/lib64/cmake/GtkDoc/GtkDocConfig.cmake
/usr/lib64/cmake/GtkDoc/GtkDocConfigVersion.cmake
/usr/lib64/cmake/GtkDoc/GtkDocScanGObjWrapper.cmake
/usr/share/aclocal/gtk-doc.m4
/usr/share/doc/gtk-doc
/usr/share/doc/gtk-doc/AUTHORS
/usr/share/doc/gtk-doc/README
/usr/share/doc/gtk-doc/README.docs
/usr/share/doc/gtk-doc/authors.txt
/usr/share/doc/gtk-doc/design-1.x.txt
/usr/share/doc/gtk-doc/design-2.x.txt
/usr/share/doc/gtk-doc/examples
/usr/share/doc/gtk-doc/examples/Makefile.am
/usr/share/doc/gtk-doc/examples/README
/usr/share/doc/gtk-doc/gnome.txt
/usr/share/doc/gtk-doc/gtkdoc.dot
/usr/share/doc/gtk-doc/sections-file.txt
/usr/share/doc/gtk-doc/setting-up.txt
/usr/share/doc/gtk-doc/style-guide.txt
/usr/share/gtk-doc
/usr/share/gtk-doc/data
/usr/share/gtk-doc/data/devhelp2.xsd
/usr/share/gtk-doc/data/devhelp2.xsl
/usr/share/gtk-doc/data/gtk-doc.flat.make
/usr/share/gtk-doc/data/gtk-doc.make
/usr/share/gtk-doc/data/gtk-doc.no-xslt-flat.make
/usr/share/gtk-doc/data/gtk-doc.no-xslt.make
/usr/share/gtk-doc/data/gtk-doc.xsl
/usr/share/gtk-doc/data/home.png
/usr/share/gtk-doc/data/left-insensitive.png
/usr/share/gtk-doc/data/left.png
/usr/share/gtk-doc/data/right-insensitive.png
/usr/share/gtk-doc/data/right.png
/usr/share/gtk-doc/data/style.css
/usr/share/gtk-doc/data/up-insensitive.png
/usr/share/gtk-doc/data/up.png
/usr/share/gtk-doc/data/version-greater-or-equal.xsl
/usr/share/gtk-doc/python
/usr/share/gtk-doc/python/gtkdoc
/usr/share/gtk-doc/python/gtkdoc/__init__.py
/usr/share/gtk-doc/python/gtkdoc/__pycache__
/usr/share/gtk-doc/python/gtkdoc/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/__init__.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/check.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/check.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/common.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/common.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/config.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/config.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/config_data.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/config_data.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/fixxref.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/fixxref.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/highlight.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/highlight.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/md_to_db.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/md_to_db.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/mkdb.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/mkdb.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/mkhtml.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/mkhtml.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/mkhtml2.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/mkhtml2.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/mkman.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/mkman.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/mkpdf.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/mkpdf.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/rebase.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/rebase.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/scan.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/scan.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/scangobj.cpython-310.opt-1.pyc
/usr/share/gtk-doc/python/gtkdoc/__pycache__/scangobj.cpython-310.pyc
/usr/share/gtk-doc/python/gtkdoc/check.py
/usr/share/gtk-doc/python/gtkdoc/common.py
/usr/share/gtk-doc/python/gtkdoc/config.py
/usr/share/gtk-doc/python/gtkdoc/config_data.py
/usr/share/gtk-doc/python/gtkdoc/fixxref.py
/usr/share/gtk-doc/python/gtkdoc/highlight.py
/usr/share/gtk-doc/python/gtkdoc/md_to_db.py
/usr/share/gtk-doc/python/gtkdoc/mkdb.py
/usr/share/gtk-doc/python/gtkdoc/mkhtml.py
/usr/share/gtk-doc/python/gtkdoc/mkhtml2.py
/usr/share/gtk-doc/python/gtkdoc/mkman.py
/usr/share/gtk-doc/python/gtkdoc/mkpdf.py
/usr/share/gtk-doc/python/gtkdoc/rebase.py
/usr/share/gtk-doc/python/gtkdoc/scan.py
/usr/share/gtk-doc/python/gtkdoc/scangobj.py
/usr/share/help/C/gtk-doc-manual
/usr/share/help/C/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/C/gtk-doc-manual/index.docbook
/usr/share/help/bn_IN/gtk-doc-manual
/usr/share/help/bn_IN/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/bn_IN/gtk-doc-manual/index.docbook
/usr/share/help/cs/gtk-doc-manual
/usr/share/help/cs/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/cs/gtk-doc-manual/index.docbook
/usr/share/help/de/gtk-doc-manual
/usr/share/help/de/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/de/gtk-doc-manual/index.docbook
/usr/share/help/el/gtk-doc-manual
/usr/share/help/el/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/el/gtk-doc-manual/index.docbook
/usr/share/help/en_GB/gtk-doc-manual
/usr/share/help/en_GB/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/en_GB/gtk-doc-manual/index.docbook
/usr/share/help/es/gtk-doc-manual
/usr/share/help/es/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/es/gtk-doc-manual/index.docbook
/usr/share/help/fr/gtk-doc-manual
/usr/share/help/fr/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/fr/gtk-doc-manual/index.docbook
/usr/share/help/gl/gtk-doc-manual
/usr/share/help/gl/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/gl/gtk-doc-manual/index.docbook
/usr/share/help/gu/gtk-doc-manual
/usr/share/help/gu/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/gu/gtk-doc-manual/index.docbook
/usr/share/help/pt_BR/gtk-doc-manual
/usr/share/help/pt_BR/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/pt_BR/gtk-doc-manual/index.docbook
/usr/share/help/sl/gtk-doc-manual
/usr/share/help/sl/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/sl/gtk-doc-manual/index.docbook
/usr/share/help/sv/gtk-doc-manual
/usr/share/help/sv/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/sv/gtk-doc-manual/index.docbook
/usr/share/help/ta/gtk-doc-manual
/usr/share/help/ta/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/ta/gtk-doc-manual/index.docbook
/usr/share/help/te/gtk-doc-manual
/usr/share/help/te/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/te/gtk-doc-manual/index.docbook
/usr/share/help/zh_CN/gtk-doc-manual
/usr/share/help/zh_CN/gtk-doc-manual/fdl-appendix.xml
/usr/share/help/zh_CN/gtk-doc-manual/index.docbook
/usr/share/licenses/gtk-doc
/usr/share/licenses/gtk-doc/COPYING
/usr/share/licenses/gtk-doc/COPYING-DOCS
/usr/share/pkgconfig/gtk-doc.pc

References

Summary

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