How to Install or Uninstall mysql-common Ubuntu 22.04

Updated: September 10, 2022

MySQL is a fast, stable and true multi-user, multi-threaded SQL database server. SQL (Structured Query Language) is the most popular database query language in the world. The main goals of MySQL are speed, robustness and ease of use. In this tutorial, I will show you ways to install mysql-common Ubuntu 22.04.

Requirements

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

Prerequisites to install mysql-common on Ubuntu 22.04

Install mysql-common Ubuntu 22.04

mysql-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 that you think is easy and you can follow.

Install mysql-common using APT

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

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

sudo apt update

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

sudo apt install mysql-common

Install mysql-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. You must run this command to install it if you haven’t already done so on Ubuntu.

sudo apt -y install aptitude

After that, you can now install mysql-common, just following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install mysql-common Ubuntu by executing this command in the terminal.

sudo aptitude install mysql-common

Uninstall mysql-common on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just mysql-common.

If you installed mysql-common using APT or Aptitude, you could uninstall mysql-common on Ubuntu by running this command

sudo apt remove --auto-remove mysql-common

You can also execute this command if you want to uninstall mysql-common and remove its data and dependencies:

sudo apt autoremove --purge mysql-common

Ending

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