How To Install hhvm-dev on Ubuntu 18.04

In this tutorial we learn how to install hhvm-dev on Ubuntu 18.04. hhvm-dev is HipHop Virtual Machine, a JIT replacement for PHP - development files

Introduction

In this tutorial we learn how to install hhvm-dev on Ubuntu 18.04.

What is hhvm-dev

hhvm-dev is:

HHVM is an open-source virtual machine designed for executing programs written in Hack and PHP. HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining the development flexibility that PHP provides.

For the majority of your programs HHVM should be a drop-in replacement for the usual PHP interpreter/engine.

This package provides the header & build system files needed for compiling HHVM extensions.

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

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

sudo apt-get update

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

sudo apt-get -y install hhvm-dev

Install hhvm-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install hhvm-dev

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

sudo aptitude -y install hhvm-dev

How To Uninstall hhvm-dev on Ubuntu 18.04

To uninstall only the hhvm-dev package we can use the following command:

sudo apt-get remove hhvm-dev

Uninstall hhvm-dev And Its Dependencies

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

sudo apt-get -y autoremove hhvm-dev

Remove hhvm-dev Configurations and Data

To remove hhvm-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge hhvm-dev

Remove hhvm-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge hhvm-dev

References

Summary

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