How To Install mediawiki-classes on Ubuntu 20.04
Introduction
In this tutorial we learn how to install mediawiki-classes on Ubuntu 20.04.
What is mediawiki-classes
mediawiki-classes is:
This package provides standalone classes from the remainder of the MediaWiki codebase. They do not call on any other portions of MediaWiki code, and can be used in portions of MediaWiki code, and can be used in other projects without dependency issues.
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.
Moreover, it keeps track of changes, so users can receive notifications, view diffs and revert edits. This system has many other features and can easily be extended.
There are three methods to install mediawiki-classes on Ubuntu 20.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 mediawiki-classes Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install mediawiki-classes using apt-get by running the following command:
sudo apt-get -y install mediawiki-classes
Install mediawiki-classes Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install mediawiki-classes using apt by running the following command:
sudo apt -y install mediawiki-classes
Install mediawiki-classes 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 mediawiki-classes using aptitude by running the following command:
sudo aptitude -y install mediawiki-classes
How To Uninstall mediawiki-classes on Ubuntu 20.04
To uninstall only the mediawiki-classes package we can use the following command:
sudo apt-get remove mediawiki-classes
Uninstall mediawiki-classes And Its Dependencies
To uninstall mediawiki-classes and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove mediawiki-classes
Remove mediawiki-classes Configurations and Data
To remove mediawiki-classes configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge mediawiki-classes
Remove mediawiki-classes configuration, data, and all of its dependencies
We can use the following command to remove mediawiki-classes configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge mediawiki-classes
References
Summary
In this tutorial we learn how to install mediawiki-classes package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.