How To Install mediawiki-extension-codemirror on Debian 12

Learn how to install mediawiki-extension-codemirror on Debian 12 with this tutorial. mediawiki-extension-codemirror is Syntax highlighting in MediaWikis wikitext editor

Introduction

In this tutorial we learn how to install mediawiki-extension-codemirror on Debian 12.

What is mediawiki-extension-codemirror

mediawiki-extension-codemirror is:

CodeMirror extension provides syntax highlighting in MediaWiki’s wikitext editor. It adds a button to the editing toolbar that allows for switching syntax highlighting on and off. It supports the 2010 WikiEditor toolbar as well as the VisualEditor toolbar.

There are three methods to install mediawiki-extension-codemirror on Debian 12. 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-extension-codemirror 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-extension-codemirror using apt-get by running the following command:

sudo apt-get -y install mediawiki-extension-codemirror

Install mediawiki-extension-codemirror Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install mediawiki-extension-codemirror using apt by running the following command:

sudo apt -y install mediawiki-extension-codemirror

Install mediawiki-extension-codemirror 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install mediawiki-extension-codemirror using aptitude by running the following command:

sudo aptitude -y install mediawiki-extension-codemirror

How To Uninstall mediawiki-extension-codemirror on Debian 12

To uninstall only the mediawiki-extension-codemirror package we can use the following command:

sudo apt-get remove mediawiki-extension-codemirror

Uninstall mediawiki-extension-codemirror And Its Dependencies

To uninstall mediawiki-extension-codemirror and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove mediawiki-extension-codemirror

Remove mediawiki-extension-codemirror Configurations and Data

To remove mediawiki-extension-codemirror configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge mediawiki-extension-codemirror

Remove mediawiki-extension-codemirror configuration, data, and all of its dependencies

We can use the following command to remove mediawiki-extension-codemirror configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge mediawiki-extension-codemirror

Dependencies

mediawiki-extension-codemirror have the following dependencies:

References

Summary

In this tutorial we learn how to install mediawiki-extension-codemirror package on Debian 12 using different package management tools: apt, apt-get and aptitude.