How To Install trac-wikitablemacro on Ubuntu 18.04

In this tutorial we learn how to install trac-wikitablemacro on Ubuntu 18.04. trac-wikitablemacro is SQL Table in Wiki Page for Trac

Introduction

In this tutorial we learn how to install trac-wikitablemacro on Ubuntu 18.04.

What is trac-wikitablemacro

trac-wikitablemacro is:

Simple macro that enables you to place tables resulting from SQL queries into a wiki page.

It is similar to, but simpler than, SqlQueryMacro or SqlAlchemyQueryMacro. The main differences are that it has fewer dependencies and always queries the Trac database, rather than requiring you to set up a separate database connection.

There are three methods to install trac-wikitablemacro on Ubuntu 18.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 trac-wikitablemacro Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install trac-wikitablemacro using apt-get by running the following command:

sudo apt-get -y install trac-wikitablemacro

Install trac-wikitablemacro Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install trac-wikitablemacro using apt by running the following command:

sudo apt -y install trac-wikitablemacro

Install trac-wikitablemacro 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 trac-wikitablemacro using aptitude by running the following command:

sudo aptitude -y install trac-wikitablemacro

How To Uninstall trac-wikitablemacro on Ubuntu 18.04

To uninstall only the trac-wikitablemacro package we can use the following command:

sudo apt-get remove trac-wikitablemacro

Uninstall trac-wikitablemacro And Its Dependencies

To uninstall trac-wikitablemacro and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove trac-wikitablemacro

Remove trac-wikitablemacro Configurations and Data

To remove trac-wikitablemacro configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge trac-wikitablemacro

Remove trac-wikitablemacro configuration, data, and all of its dependencies

We can use the following command to remove trac-wikitablemacro configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge trac-wikitablemacro

References

Summary

In this tutorial we learn how to install trac-wikitablemacro package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.