How To Install gflags on Fedora 36

In this tutorial we learn how to install gflags in Fedora 36. gflags is Library for commandline flag processing

Introduction

In this tutorial we learn how to install gflags on Fedora 36.

What is gflags

The gflags package contains a library that implements commandline flags processing. As such it’s a replacement for getopt(). It has increased flexibility, including built-in support for C++ types like string, and the ability to define flags in the source file in which they’re used.

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

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

sudo dnf -y install gflags

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

sudo yum -y install gflags

How To Uninstall gflags on Fedora 36

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

sudo dnf remove gflags

gflags Package Contents on Fedora 36

/usr/bin/gflags_completions.sh
/usr/lib/.build-id
/usr/lib/.build-id/43
/usr/lib/.build-id/43/e83f20c26b0251ffba6896f06cd28d3c15aee3
/usr/lib/.build-id/56
/usr/lib/.build-id/56/e163f41ad6ef20758abea06fe66f92dcf12f01
/usr/lib/libgflags.so.2.2
/usr/lib/libgflags.so.2.2.2
/usr/lib/libgflags_nothreads.so.2.2
/usr/lib/libgflags_nothreads.so.2.2.2
/usr/share/doc/gflags
/usr/share/doc/gflags/AUTHORS.txt
/usr/share/doc/gflags/ChangeLog.txt
/usr/share/doc/gflags/README.md
/usr/share/licenses/gflags
/usr/share/licenses/gflags/COPYING.txt

References

Summary

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


title: “How To Install gflags on Fedora 36” linkTitle: “gflags” type: “docs” description: “In this tutorial we learn how to install gflags in Fedora 36. gflags is Library for commandline flag processing” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/gflags-featured.png

Introduction

In this tutorial we learn how to install gflags on Fedora 36.

What is gflags

The gflags package contains a library that implements commandline flags processing. As such it’s a replacement for getopt(). It has increased flexibility, including built-in support for C++ types like string, and the ability to define flags in the source file in which they’re used.

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

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

sudo dnf -y install gflags

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

sudo yum -y install gflags

How To Uninstall gflags on Fedora 36

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

sudo dnf remove gflags

gflags Package Contents on Fedora 36

/usr/bin/gflags_completions.sh
/usr/lib/.build-id
/usr/lib/.build-id/28
/usr/lib/.build-id/28/00527d5f104bcee456df3d0376a5f7eda3e15e
/usr/lib/.build-id/47
/usr/lib/.build-id/47/c308bdcc1398a38b271c42a42f9c5c34bbf010
/usr/lib64/libgflags.so.2.2
/usr/lib64/libgflags.so.2.2.2
/usr/lib64/libgflags_nothreads.so.2.2
/usr/lib64/libgflags_nothreads.so.2.2.2
/usr/share/doc/gflags
/usr/share/doc/gflags/AUTHORS.txt
/usr/share/doc/gflags/ChangeLog.txt
/usr/share/doc/gflags/README.md
/usr/share/licenses/gflags
/usr/share/licenses/gflags/COPYING.txt

References

Summary

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