How To Install libreoffice-dmaths on Ubuntu 18.04

In this tutorial we learn how to install libreoffice-dmaths on Ubuntu 18.04. libreoffice-dmaths is Formula editing plug-in for LibreOffice Writer

Introduction

In this tutorial we learn how to install libreoffice-dmaths on Ubuntu 18.04.

What is libreoffice-dmaths

libreoffice-dmaths is:

This package integrates with LibreOffice to simplify the editing of mathematical and scientific formulas. It also allows you to use your favorite drawing software and include graphs of functions into a document.

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

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

sudo apt-get update

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

sudo apt-get -y install libreoffice-dmaths

Install libreoffice-dmaths Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libreoffice-dmaths

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

sudo aptitude -y install libreoffice-dmaths

How To Uninstall libreoffice-dmaths on Ubuntu 18.04

To uninstall only the libreoffice-dmaths package we can use the following command:

sudo apt-get remove libreoffice-dmaths

Uninstall libreoffice-dmaths And Its Dependencies

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

sudo apt-get -y autoremove libreoffice-dmaths

Remove libreoffice-dmaths Configurations and Data

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

sudo apt-get -y purge libreoffice-dmaths

Remove libreoffice-dmaths configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libreoffice-dmaths

References

Summary

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