How To Install cgit on Fedora 36

In this tutorial we learn how to install cgit in Fedora 36. cgit is A fast web interface for git

Introduction

In this tutorial we learn how to install cgit on Fedora 36.

What is cgit

Cgit is a fast web interface for git. It uses caching to increase performance.

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

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

sudo dnf -y install cgit

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

sudo yum -y install cgit

How To Uninstall cgit on Fedora 36

To uninstall only the cgit package we can use the following command:

sudo dnf remove cgit

cgit Package Contents on Fedora 36

/etc/cgitrc
/etc/httpd/conf.d/cgit.conf
/usr/lib/.build-id
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/736edfbcb1753fd0777bd64e2d586bc02dcaf9
/usr/libexec/cgit/filters
/usr/libexec/cgit/filters/about-formatting.sh
/usr/libexec/cgit/filters/commit-links.sh
/usr/libexec/cgit/filters/email-gravatar.lua
/usr/libexec/cgit/filters/email-gravatar.py
/usr/libexec/cgit/filters/email-libravatar.lua
/usr/libexec/cgit/filters/file-authentication.lua
/usr/libexec/cgit/filters/gentoo-ldap-authentication.lua
/usr/libexec/cgit/filters/html-converters
/usr/libexec/cgit/filters/html-converters/man2html
/usr/libexec/cgit/filters/html-converters/md2html
/usr/libexec/cgit/filters/html-converters/rst2html
/usr/libexec/cgit/filters/html-converters/txt2html
/usr/libexec/cgit/filters/owner-example.lua
/usr/libexec/cgit/filters/simple-authentication.lua
/usr/libexec/cgit/filters/syntax-highlighting.py
/usr/libexec/cgit/filters/syntax-highlighting.sh
/usr/share/cgit
/usr/share/cgit/cgit.css
/usr/share/cgit/cgit.png
/usr/share/cgit/favicon.ico
/usr/share/cgit/robots.txt
/usr/share/doc/cgit
/usr/share/doc/cgit/README
/usr/share/doc/cgit/README-SELinux.md
/usr/share/doc/cgit/cgitrc.5.html
/usr/share/doc/cgit/contrib
/usr/share/doc/cgit/contrib/hooks
/usr/share/doc/cgit/contrib/hooks/post-receive.agefile
/usr/share/licenses/cgit
/usr/share/licenses/cgit/COPYING
/usr/share/man/man5/cgitrc.5.gz
/var/cache/cgit
/var/lib/git
/var/www/cgi-bin/cgit

References

Summary

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