How To Install preprocess on Ubuntu 18.04

In this tutorial we learn how to install preprocess on Ubuntu 18.04. preprocess is portable multi-language file preprocessor

Introduction

In this tutorial we learn how to install preprocess on Ubuntu 18.04.

What is preprocess

preprocess is:

Preprocess is like a typical C preprocessor, but it extends to multiple languages. Languages for which it works include: C++, Python, Perl, Tcl, XML, JavaScript, CSS, IDL, TeX, Fortran, PHP, Java, Shell scripts (Bash, CSH, etc.) and C#.

Preprocess is usable both as a command line app and as a Python module.

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

Install preprocess Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install preprocess

Install preprocess Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install preprocess

Install preprocess 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install preprocess

How To Uninstall preprocess on Ubuntu 18.04

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

sudo apt-get remove preprocess

Uninstall preprocess And Its Dependencies

To uninstall preprocess and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove preprocess

Remove preprocess Configurations and Data

To remove preprocess configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge preprocess

Remove preprocess configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge preprocess

References

Summary

In this tutorial we learn how to install preprocess package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.