How to Uninstall or Install dia-common on Ubuntu 22.04

Updated: October 25, 2022

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. In this guide, I will show you how to install dia-common on Ubuntu 22.04.

Requirements to install

  • OS: dia-common needs Ubuntu 22.04 to work
  • Privileges: Check that you can run sudo commands.

Prerequisites to install dia-common on Ubuntu 22.04

Install dia-common Ubuntu 22.04

dia-common is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install dia-common using APT

This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to install dia-common on your Ubuntu 22.04.

Step 1: Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install dia-common Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt -y install dia-common

Install dia-common using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get install aptitude

Then, you can now install dia-common, just following these steps:

Step 1: Update the APT database to fetch new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get update

Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install dia-common Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude -y install dia-common

Uninstall dia-common on Ubuntu 22.04

Have you ever thought about how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone can easily uninstall any program, not just a package.

You can uninstall dia-common Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove dia-common

If you want to uninstall dia-common and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge dia-common

Conclusion

In this tutorial, I showed you ways to install dia-common on Ubuntu 22.04 and some ways to uninstall dia-common too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.