How To Install ztex-bmp on Ubuntu 18.04

In this tutorial we learn how to install ztex-bmp on Ubuntu 18.04. ztex-bmp is universal macro processor

Introduction

In this tutorial we learn how to install ztex-bmp on Ubuntu 18.04.

What is ztex-bmp

ztex-bmp is:

bmp (for babel universal macro processor) is a powerful general purpose macro processor that can be used in combination with many languages, e.g. Pascal or C. Projects comprising many different languages, can this way share a single mechanism to adjust parameters across all their code base. Developers with C background will be reminded of the functionality of cpp or m4, and those fluent in UNIX will also see similarities to sed.

bmp was developed as a part of the ZTEX EZ-USB SDK and is used to assemble the firmware for EZ-USB micro controllers. It is not associated in any way with D. Knuth’s typesetting system. When run as a standalone application, it is as versatile as to serve as a parser or to perform some non-trivial text replacements.

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

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

sudo apt-get update

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

sudo apt-get -y install ztex-bmp

Install ztex-bmp Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ztex-bmp

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

sudo aptitude -y install ztex-bmp

How To Uninstall ztex-bmp on Ubuntu 18.04

To uninstall only the ztex-bmp package we can use the following command:

sudo apt-get remove ztex-bmp

Uninstall ztex-bmp And Its Dependencies

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

sudo apt-get -y autoremove ztex-bmp

Remove ztex-bmp Configurations and Data

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

sudo apt-get -y purge ztex-bmp

Remove ztex-bmp configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ztex-bmp

References

Summary

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