How To Install trac-includemacro on Ubuntu 18.04

In this tutorial we learn how to install trac-includemacro on Ubuntu 18.04. trac-includemacro is Include external resources in a Trac wiki page

Introduction

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

What is trac-includemacro

trac-includemacro is:

This Trac macro allows for the inclusion (embedding) of various sources into wiki pages.

There are three methods to install trac-includemacro 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-includemacro 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-includemacro using apt-get by running the following command:

sudo apt-get -y install trac-includemacro

Install trac-includemacro Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install trac-includemacro

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

sudo aptitude -y install trac-includemacro

How To Uninstall trac-includemacro on Ubuntu 18.04

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

sudo apt-get remove trac-includemacro

Uninstall trac-includemacro And Its Dependencies

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

sudo apt-get -y autoremove trac-includemacro

Remove trac-includemacro Configurations and Data

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

sudo apt-get -y purge trac-includemacro

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

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

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

References

Summary

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