How To Install cflow on Fedora 34

cflow is Analyzes C files charting control flow within the program

Introduction

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

What is cflow

GNU cflow analyzes a collection of C source files and prints a graph, charting control flow within the program. GNU cflow is able to produce both direct and inverted flowgraphs for C sources. Optionally a cross-reference listing can be generated. Two output formats are implemented

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

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

sudo dnf -y install cflow

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

sudo yum -y install cflow

How To Uninstall cflow on Fedora 34

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

sudo dnf remove cflow

cflow Package Contents on Fedora 34

/usr/bin/cflow
/usr/lib/.build-id
/usr/lib/.build-id/59
/usr/lib/.build-id/59/6c3441151f399c6978e875a4cc66742dffe1ae
/usr/share/doc/cflow
/usr/share/doc/cflow/AUTHORS
/usr/share/doc/cflow/ChangeLog
/usr/share/doc/cflow/NEWS
/usr/share/doc/cflow/README
/usr/share/doc/cflow/THANKS
/usr/share/doc/cflow/TODO
/usr/share/emacs/site-lisp/cflow-mode.el
/usr/share/info/cflow.info.gz
/usr/share/licenses/cflow
/usr/share/licenses/cflow/COPYING
/usr/share/locale/da/LC_MESSAGES/cflow.mo
/usr/share/locale/de/LC_MESSAGES/cflow.mo
/usr/share/locale/eo/LC_MESSAGES/cflow.mo
/usr/share/locale/es/LC_MESSAGES/cflow.mo
/usr/share/locale/fi/LC_MESSAGES/cflow.mo
/usr/share/locale/fr/LC_MESSAGES/cflow.mo
/usr/share/locale/ga/LC_MESSAGES/cflow.mo
/usr/share/locale/hr/LC_MESSAGES/cflow.mo
/usr/share/locale/id/LC_MESSAGES/cflow.mo
/usr/share/locale/nl/LC_MESSAGES/cflow.mo
/usr/share/locale/pl/LC_MESSAGES/cflow.mo
/usr/share/locale/pt_BR/LC_MESSAGES/cflow.mo
/usr/share/locale/sr/LC_MESSAGES/cflow.mo
/usr/share/locale/sv/LC_MESSAGES/cflow.mo
/usr/share/locale/uk/LC_MESSAGES/cflow.mo
/usr/share/locale/vi/LC_MESSAGES/cflow.mo
/usr/share/locale/zh_CN/LC_MESSAGES/cflow.mo
/usr/share/man/man1/cflow.1.gz
/usr/bin/cflow
/usr/lib/.build-id
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/482ba320c34ad2a63ed91fe342989bdff3d6d4
/usr/share/doc/cflow
/usr/share/doc/cflow/AUTHORS
/usr/share/doc/cflow/ChangeLog
/usr/share/doc/cflow/NEWS
/usr/share/doc/cflow/README
/usr/share/doc/cflow/THANKS
/usr/share/doc/cflow/TODO
/usr/share/emacs/site-lisp/cflow-mode.el
/usr/share/info/cflow.info.gz
/usr/share/licenses/cflow
/usr/share/licenses/cflow/COPYING
/usr/share/locale/da/LC_MESSAGES/cflow.mo
/usr/share/locale/de/LC_MESSAGES/cflow.mo
/usr/share/locale/eo/LC_MESSAGES/cflow.mo
/usr/share/locale/es/LC_MESSAGES/cflow.mo
/usr/share/locale/fi/LC_MESSAGES/cflow.mo
/usr/share/locale/fr/LC_MESSAGES/cflow.mo
/usr/share/locale/ga/LC_MESSAGES/cflow.mo
/usr/share/locale/hr/LC_MESSAGES/cflow.mo
/usr/share/locale/id/LC_MESSAGES/cflow.mo
/usr/share/locale/nl/LC_MESSAGES/cflow.mo
/usr/share/locale/pl/LC_MESSAGES/cflow.mo
/usr/share/locale/pt_BR/LC_MESSAGES/cflow.mo
/usr/share/locale/sr/LC_MESSAGES/cflow.mo
/usr/share/locale/sv/LC_MESSAGES/cflow.mo
/usr/share/locale/uk/LC_MESSAGES/cflow.mo
/usr/share/locale/vi/LC_MESSAGES/cflow.mo
/usr/share/locale/zh_CN/LC_MESSAGES/cflow.mo
/usr/share/man/man1/cflow.1.gz

References

Summary

In this tutorial we learn how to install cflow on Fedora 34 using yum and dnf.