Ways to Uninstall and Install phpmyadmin Ubuntu 22.04

Updated: October 8, 2022

This package allows administering of MySQL or MariaDB with a web interface. In this guide, I will show you ways to install phpmyadmin Ubuntu 22.04.

Software Requirement

  • OS: phpmyadmin needs Ubuntu 22.04 to work
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install phpmyadmin on Ubuntu 22.04

Install phpmyadmin Ubuntu 22.04

phpmyadmin is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install phpmyadmin 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 phpmyadmin on your Ubuntu 22.04.

Step 1: You must update the APT package repository cache before attempting 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 update

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

sudo apt-get -y install phpmyadmin

Install phpmyadmin using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already done so, run this command to install it.

sudo apt-get install aptitude

After that, you can now install phpmyadmin, 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 this Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install phpmyadmin Ubuntu by executing this command in the terminal.

sudo aptitude -y install phpmyadmin

Uninstall phpmyadmin 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 phpmyadmin on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove phpmyadmin

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

sudo apt autoremove --purge phpmyadmin

Conclusion

In this tutorial, I showed you ways to install phpmyadmin on Ubuntu 22.04 and ways to uninstall phpmyadmin too. Please contact me if you require any assistance. I’d be delighted to respond.