How To Install libnglib-6.2.1804 on Ubuntu 20.04

In this tutorial we learn how to install libnglib-6.2.1804 on Ubuntu 20.04. libnglib-6.2.1804 is Automatic 3d tetrahedral mesh generator shared library

Introduction

In this tutorial we learn how to install libnglib-6.2.1804 on Ubuntu 20.04.

What is libnglib-6.2.1804

libnglib-6.2.1804 is:

NETGEN is an automatic 3d tetrahedral mesh generator. It accepts input from constructive solid geometry (CSG) or boundary representation (BRep) from STL file format. The connection to a geometry kernel allows the handling of IGES and STEP files. NETGEN contains modules for mesh optimization and hierarchical mesh refinement.

This package contains the shared libraries.

There are three methods to install libnglib-6.2.1804 on Ubuntu 20.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 libnglib-6.2.1804 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libnglib-6.2.1804

Install libnglib-6.2.1804 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libnglib-6.2.1804

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

sudo aptitude -y install libnglib-6.2.1804

How To Uninstall libnglib-6.2.1804 on Ubuntu 20.04

To uninstall only the libnglib-6.2.1804 package we can use the following command:

sudo apt-get remove libnglib-6.2.1804

Uninstall libnglib-6.2.1804 And Its Dependencies

To uninstall libnglib-6.2.1804 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libnglib-6.2.1804

Remove libnglib-6.2.1804 Configurations and Data

To remove libnglib-6.2.1804 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libnglib-6.2.1804

Remove libnglib-6.2.1804 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libnglib-6.2.1804

References

Summary

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