How To Install golang-github-alecthomas-chroma on Fedora 36
Introduction
In this tutorial we learn how to install golang-github-alecthomas-chroma
on Fedora 36.
What is golang-github-alecthomas-chroma
Chroma takes source code and other structured text and converts it into syntax highlighted HTML, ANSI-coloured text, etc. Chroma is based heavily on Pygments, and includes translators for Pygments lexers and styles.
We can use yum
or dnf
to install golang-github-alecthomas-chroma
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install golang-github-alecthomas-chroma.
Install golang-github-alecthomas-chroma 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 golang-github-alecthomas-chroma
using dnf
by running the following command:
sudo dnf -y install golang-github-alecthomas-chroma
Install golang-github-alecthomas-chroma 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 golang-github-alecthomas-chroma
using yum
by running the following command:
sudo yum -y install golang-github-alecthomas-chroma
How To Uninstall golang-github-alecthomas-chroma on Fedora 36
To uninstall only the golang-github-alecthomas-chroma
package we can use the following command:
sudo dnf remove golang-github-alecthomas-chroma
golang-github-alecthomas-chroma Package Contents on Fedora 36
/usr/bin/chroma
/usr/bin/chromad
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/49714623ad5ad23fa9effb2d48c2c0e7ed99d0
/usr/lib/.build-id/25
/usr/lib/.build-id/25/ba946bdd57f853273c6f8e6c67c0345d5903ec
/usr/share/doc/golang-github-alecthomas-chroma
/usr/share/doc/golang-github-alecthomas-chroma/README.md
/usr/share/licenses/golang-github-alecthomas-chroma
/usr/share/licenses/golang-github-alecthomas-chroma/COPYING
References
Summary
In this tutorial we learn how to install golang-github-alecthomas-chroma
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).