How To Install cgit on Fedora 34
Introduction
In this tutorial we learn how to install cgit
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install cgit.
Install cgit on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install cgit
using dnf
by running the following command:
sudo dnf -y install cgit
Install cgit on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the cgit
package we can use the following command:
sudo dnf remove cgit
cgit Package Contents on Fedora 34
/etc/cgitrc
/etc/httpd/conf.d/cgit.conf
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/6ea1c3c8754506b3b22639aceea22752e4734f
/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
/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/www/cgi-bin/cgit
References
Summary
In this tutorial we learn how to install cgit
on Fedora 34 using yum and dnf.