How To Install dia-common on Ubuntu 18.04

In this tutorial we learn how to install dia-common on Ubuntu 18.04. dia-common is Diagram editor (common files)

Introduction

In this tutorial we learn how to install dia-common on Ubuntu 18.04.

What is dia-common

dia-common is:

Dia is an editor for diagrams, graphs, charts etc. There is support for UML static structure diagrams (class diagrams), Entity-Relationship diagrams, network diagrams and much more. Diagrams can be exported to postscript and many other formats.

This package contains the architecture independent files.

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

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

sudo apt-get update

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

sudo apt-get -y install dia-common

Install dia-common Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dia-common

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

sudo aptitude -y install dia-common

How To Uninstall dia-common on Ubuntu 18.04

To uninstall only the dia-common package we can use the following command:

sudo apt-get remove dia-common

Uninstall dia-common And Its Dependencies

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

sudo apt-get -y autoremove dia-common

Remove dia-common Configurations and Data

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

sudo apt-get -y purge dia-common

Remove dia-common configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge dia-common

References

Summary

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