How To Install discount on CentOS 8

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

Introduction

In this tutorial we learn how to install discount on CentOS 8.

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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install discount.

Install discount on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 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 CentOS 8

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

sudo dnf remove discount

discount Package Contents on CentOS 8

/usr/bin/discount-makepage
/usr/bin/discount-mkd2html
/usr/bin/discount-theme
/usr/bin/markdown
/usr/lib/.build-id
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/f4b906876ed1fbdbf3644c0b0b6f9d5af2d17f
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/6680900dd82bd1d68e93acd0e5e2c1ab7eea48
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/2bd8f10a1a239f4daa8507625e00e582d68725
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/14ddfa6ba99c53c0a6f3689924347b110b5b46
/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 CentOS 8 using yum and dnf.