How To Install discount on Fedora 34

discount is A command-line utility for converting Markdown files into HTML

Introduction

In this tutorial we learn how to install discount on Fedora 34.

What is discount

DISCOUNT is an implementation of John Gruber’s Markdown language in C. It includes all of the original Markdown features, along with a few extensions, and passes the Markdown test suite.

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

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

sudo dnf -y install discount

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

sudo yum -y install discount

How To Uninstall discount on Fedora 34

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

sudo dnf remove discount

discount Package Contents on Fedora 34

/usr/bin/discount-makepage
/usr/bin/discount-mkd2html
/usr/bin/discount-theme
/usr/bin/markdown
/usr/lib/.build-id
/usr/lib/.build-id/99
/usr/lib/.build-id/99/6bb45823234ac13e5ddcbebb402157d7a3060d
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/0307079fc7fd56c41fa35ab086d06f03b4a562
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/d9c51934b8f5c0d15a597d0f923c546cf056ab
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/fc354811e821a30ef8b37b9fee4ff3486ccc59
/usr/share/man/man1/discount-makepage.1.gz
/usr/share/man/man1/discount-mkd2html.1.gz
/usr/share/man/man1/discount-theme.1.gz
/usr/share/man/man1/markdown.1.gz
/usr/share/man/man7/markdown.7.gz
/usr/share/man/man7/mkd-extensions.7.gz

References

Summary

In this tutorial we learn how to install discount on Fedora 34 using yum and dnf.