How To Install cproto on CentOS 7
Introduction
In this tutorial we learn how to install cproto
on CentOS 7.
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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install cproto.
Install cproto on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install cproto
using yum
by running the following command:
Install cproto on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install cproto
using dnf
by running the following command:
How To Uninstall cproto on CentOS 7
To uninstall only the cproto
package we can use the following command:
References
Summary
In this tutorial we learn how to install cproto
on CentOS 7 using yum
and dnf
.