How To Install cproto on Fedora 34

cproto is Generates function prototypes and variable declarations from C code

Introduction

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

What is cproto

Cproto generates function prototypes and variable declarations from C source code. Cproto can also convert function definitions between the old style and the ANSI C style. This conversion will overwrite the original files, however, so be sure to make a backup copy of your original files in case something goes wrong. Cproto uses a Yacc generated parser, so it should not be confused by complex function definitions as much as other prototype generators.

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

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

sudo dnf -y install cproto

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

sudo yum -y install cproto

How To Uninstall cproto on Fedora 34

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

sudo dnf remove cproto

cproto Package Contents on Fedora 34

/usr/bin/cproto
/usr/lib/.build-id
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/f114215a46a0928c9af0691359ed9a5e9b4f61
/usr/share/doc/cproto
/usr/share/doc/cproto/AUTHORS
/usr/share/doc/cproto/CHANGES
/usr/share/doc/cproto/MANIFEST
/usr/share/doc/cproto/README
/usr/share/man/man1/cproto.1.gz

References

Summary

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