How To Install cproto on Debian 9

In this tutorial we learn how to install cproto on Debian 9. cproto is utilities to generate C function prototypes from C source code

Introduction

In this tutorial we learn how to install cproto on Debian 9.

What is cproto

cproto is:

Cproto is a program that generates function prototypes and variable declarations from C source code. It can also convert function definitions between the old style and the ANSI C style. This conversion overwrites the original files, so make a backup copy of your files in case something goes wrong.

There are three methods to install cproto on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install cproto Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install cproto using apt-get by running the following command:

sudo apt-get -y install cproto

Install cproto Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install cproto using apt by running the following command:

sudo apt -y install cproto

Install cproto Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install cproto using aptitude by running the following command:

sudo aptitude -y install cproto

How To Uninstall cproto on Debian 9

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

sudo apt-get remove cproto

Uninstall cproto And Its Dependencies

To uninstall cproto and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove cproto

Remove cproto Configurations and Data

To remove cproto configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge cproto

Remove cproto configuration, data, and all of its dependencies

We can use the following command to remove cproto configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge cproto

Dependencies

cproto have the following dependencies:

References

Summary

In this tutorial we learn how to install cproto package on Debian 9 using different package management tools: apt, apt-get and aptitude.