How To Install gflags on Fedora 34

gflags is Library for commandline flag processing Library for commandline flag processing

Introduction

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

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. gflags 2.2.2 7.fc34 x86_64 93 k gflags-2.2.2-7.fc34.src.rpm fedora Library for commandline flag processing https BSD 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 34. In this tutorial we discuss both methods but you only need to choose one of method to install gflags.

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

sudo dnf -y install gflags

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

sudo yum -y install gflags

How To Uninstall gflags on Fedora 34

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

sudo dnf remove gflags

gflags Package Contents on Fedora 34

/usr/bin/gflags_completions.sh
/usr/lib/.build-id
/usr/lib/.build-id/47
/usr/lib/.build-id/47/2d3a7201ac941b38eee6e623a5d8aa1317c488
/usr/lib/.build-id/69
/usr/lib/.build-id/69/9581a2bc0ef9208779e605ebedde970f58feaf
/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
/usr/bin/gflags_completions.sh
/usr/lib/.build-id
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/c62a20f02a0ddbe8c5ab8a99cc36809fd42fb1
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/c89ab60d7952a5ff5f290f8c189de540d79f92
/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 34 using yum and dnf.