How To Install pentium-builder on Ubuntu 18.04

In this tutorial we learn how to install pentium-builder on Ubuntu 18.04. pentium-builder is force pentium optimized compilation

Introduction

In this tutorial we learn how to install pentium-builder on Ubuntu 18.04.

What is pentium-builder

pentium-builder is:

Replaces gcc, cc, and g++ with scripts that build pentium optimized code. (Other processors can be optimized for as well.)

By default, after installing this package, the compilers will behave normally. However, if the environment variable DEBIAN_BUILDARCH=pentium is set, they will enter pentium optimized compile mode.

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

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

sudo apt-get update

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

sudo apt-get -y install pentium-builder

Install pentium-builder Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install pentium-builder

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

sudo aptitude -y install pentium-builder

How To Uninstall pentium-builder on Ubuntu 18.04

To uninstall only the pentium-builder package we can use the following command:

sudo apt-get remove pentium-builder

Uninstall pentium-builder And Its Dependencies

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

sudo apt-get -y autoremove pentium-builder

Remove pentium-builder Configurations and Data

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

sudo apt-get -y purge pentium-builder

Remove pentium-builder configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge pentium-builder

References

Summary

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