How To Install termcolor-doc on Fedora 36

In this tutorial we learn how to install termcolor-doc in Fedora 36. termcolor-doc is Documentation and examples for termcolor

Introduction

In this tutorial we learn how to install termcolor-doc on Fedora 36.

What is termcolor-doc

Termcolor is a header-only C++ library for printing colored messages to the terminal. Written just for fun with a help of the Force. Termcolor uses ANSI color formatting, so you can use it on every system that is used such terminals (most *nix systems, including Linux and Mac OS).

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

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

sudo dnf -y install termcolor-doc

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

sudo yum -y install termcolor-doc

How To Uninstall termcolor-doc on Fedora 36

To uninstall only the termcolor-doc package we can use the following command:

sudo dnf remove termcolor-doc

termcolor-doc Package Contents on Fedora 36

/usr/share/doc/termcolor-doc
/usr/share/doc/termcolor-doc/README.rst
/usr/share/doc/termcolor-doc/examples
/usr/share/doc/termcolor-doc/examples/cmake-external
/usr/share/doc/termcolor-doc/examples/cmake-external/CMakeLists.txt
/usr/share/doc/termcolor-doc/examples/cmake-external/example.cpp
/usr/share/doc/termcolor-doc/examples/cmake-fetch
/usr/share/doc/termcolor-doc/examples/cmake-fetch/CMakeLists.txt
/usr/share/doc/termcolor-doc/examples/cmake-fetch/example.cpp
/usr/share/doc/termcolor-doc/examples/cmake-package
/usr/share/doc/termcolor-doc/examples/cmake-package/CMakeLists.txt
/usr/share/doc/termcolor-doc/examples/cmake-package/example.cpp
/usr/share/doc/termcolor-doc/examples/cmake-submodule
/usr/share/doc/termcolor-doc/examples/cmake-submodule/CMakeLists.txt
/usr/share/doc/termcolor-doc/examples/cmake-submodule/example.cpp
/usr/share/doc/termcolor-doc/termcolor.pdf
/usr/share/licenses/termcolor-doc
/usr/share/licenses/termcolor-doc/LICENSE

References

Summary

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