How To Install vera++ on Ubuntu 18.04

In this tutorial we learn how to install vera++ on Ubuntu 18.04. vera++ is Programmable verification and analysis tool for C++

Introduction

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

What is vera++

vera++ is:

Vera++ is a programmable tool for verification, analysis and transformation of C++ source code. Vera++ is mainly an engine that parses C++ source files and presents the result of this parsing to scripts in the form of various collections - the scripts are actually performing the requested tasks.

There are three methods to install vera++ 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 vera++ Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install vera++

Install vera++ Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install vera++

Install vera++ 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 vera++ using aptitude by running the following command:

sudo aptitude -y install vera++

How To Uninstall vera++ on Ubuntu 18.04

To uninstall only the vera++ package we can use the following command:

sudo apt-get remove vera++

Uninstall vera++ And Its Dependencies

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

sudo apt-get -y autoremove vera++

Remove vera++ Configurations and Data

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

sudo apt-get -y purge vera++

Remove vera++ configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge vera++

References

Summary

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