How to Uninstall and Install mediawiki Ubuntu 22.04

Updated: October 8, 2022

MediaWiki is a wiki engine (a program for creating a collaboratively edited website). It is designed to handle heavy websites containing library-like document collections, and supports user uploads of images/sounds, multilingual content, TOC autogeneration, ISBN links, etc. In this tutorial, I will show you ways to install mediawiki Ubuntu 22.04.

Software Requirement

  • OS: Ubuntu 22.04 is needed for mediawiki to work
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install mediawiki on Ubuntu 22.04

Install mediawiki Ubuntu 22.04

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

Install mediawiki 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 steps to install mediawiki on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. You can now install mediawiki Ubuntu by executing this command in the terminal.

sudo apt -y install mediawiki

Install mediawiki 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 installing aptitude, you can now install mediawiki, just following these steps:

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

sudo apt-get update

Step 2: Start the package installation on Ubuntu 22.04. You can now install mediawiki Ubuntu by executing this command in the terminal.

sudo aptitude install mediawiki

Uninstall mediawiki on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a mediawiki, can be easily uninstalled by anyone.

You can uninstall mediawiki on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove mediawiki

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

sudo apt autoremove --purge mediawiki

Conclusion

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