How To Install docopt-cpp on Fedora 36

In this tutorial we learn how to install docopt-cpp in Fedora 36. docopt-cpp is C++11 Port of docopt

Introduction

In this tutorial we learn how to install docopt-cpp on Fedora 36.

What is docopt-cpp

docopt creates beautiful command-line interfaces Isn’t it awesome how getopt (and boost generate help messages based on your code?! These timeless functions have been around for decades and have proven we don’t need anything better, right? Hell no! You know what’s awesome? It’s when the option parser is generated based on the beautiful help message that you write yourself! This way you don’t need to write this stupid repeatable parser-code, and instead can write only the help message-the way you want it. This is a port of the docopt.py module (https and we have tried to maintain full feature parity (and code structure) as the original. This port is written in C++11 and also requires a good C++11 standard library (in particular, one with regex support).

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

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

sudo dnf -y install docopt-cpp

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

sudo yum -y install docopt-cpp

How To Uninstall docopt-cpp on Fedora 36

To uninstall only the docopt-cpp package we can use the following command:

sudo dnf remove docopt-cpp

docopt-cpp Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/a407e36228a18f0676bd287b1222953e63e410
/usr/lib/libdocopt.so.0
/usr/lib/libdocopt.so.0.6.2
/usr/share/doc/docopt-cpp
/usr/share/doc/docopt-cpp/README.rst
/usr/share/licenses/docopt-cpp
/usr/share/licenses/docopt-cpp/LICENSE-Boost-1.0
/usr/share/licenses/docopt-cpp/LICENSE-MIT

References

Summary

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


title: “How To Install docopt-cpp on Fedora 36” linkTitle: “docopt-cpp” type: “docs” description: “In this tutorial we learn how to install docopt-cpp in Fedora 36. docopt-cpp is C++11 Port of docopt” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/docopt-cpp-featured.png

Introduction

In this tutorial we learn how to install docopt-cpp on Fedora 36.

What is docopt-cpp

docopt creates beautiful command-line interfaces Isn’t it awesome how getopt (and boost generate help messages based on your code?! These timeless functions have been around for decades and have proven we don’t need anything better, right? Hell no! You know what’s awesome? It’s when the option parser is generated based on the beautiful help message that you write yourself! This way you don’t need to write this stupid repeatable parser-code, and instead can write only the help message-the way you want it. This is a port of the docopt.py module (https and we have tried to maintain full feature parity (and code structure) as the original. This port is written in C++11 and also requires a good C++11 standard library (in particular, one with regex support).

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

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

sudo dnf -y install docopt-cpp

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

sudo yum -y install docopt-cpp

How To Uninstall docopt-cpp on Fedora 36

To uninstall only the docopt-cpp package we can use the following command:

sudo dnf remove docopt-cpp

docopt-cpp Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/e5530b326aa60130a1905fcef651b7ac841d2e
/usr/lib64/libdocopt.so.0
/usr/lib64/libdocopt.so.0.6.2
/usr/share/doc/docopt-cpp
/usr/share/doc/docopt-cpp/README.rst
/usr/share/licenses/docopt-cpp
/usr/share/licenses/docopt-cpp/LICENSE-Boost-1.0
/usr/share/licenses/docopt-cpp/LICENSE-MIT

References

Summary

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