How To Install php-text-wiki on Debian 12
Introduction
In this tutorial we learn how to install php-text-wiki on Debian 12.
What is php-text-wiki
php-text-wiki is:
The text transformation is done in 2 steps. The chosen parser uses markup rules to tokenize the tags and content. Renderers output the tokens and text into the requested format. The tokenized form replaces the tags by a protected byte value associated to an index in an options table. This form shares up to 50 rules by all parsers and renderers. The package is intented for versatile transformers as well as converters. Text_Wiki is delivered with its own parser, which is used by Yawiki or Horde’s Wicked and three basic renderers: XHTML , LaTeX and plain text. Strong sanitizing of XHTML is default. Parsers (* and Renderers) exist for BBCode, Cowiki (), Dokuwiki (), Mediawiki and Tikiwiki (*). It is highly configurable and can be easily extended.
There are three methods to install php-text-wiki 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 php-text-wiki Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install php-text-wiki using apt-get by running the following command:
sudo apt-get -y install php-text-wiki
Install php-text-wiki Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install php-text-wiki using apt by running the following command:
sudo apt -y install php-text-wiki
Install php-text-wiki 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 php-text-wiki using aptitude by running the following command:
sudo aptitude -y install php-text-wiki
How To Uninstall php-text-wiki on Debian 12
To uninstall only the php-text-wiki package we can use the following command:
sudo apt-get remove php-text-wiki
Uninstall php-text-wiki And Its Dependencies
To uninstall php-text-wiki and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove php-text-wiki
Remove php-text-wiki Configurations and Data
To remove php-text-wiki configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge php-text-wiki
Remove php-text-wiki configuration, data, and all of its dependencies
We can use the following command to remove php-text-wiki configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge php-text-wiki
Dependencies
php-text-wiki have the following dependencies:
References
Summary
In this tutorial we learn how to install php-text-wiki package on Debian 12 using different package management tools: apt, apt-get and aptitude.