How To Install trac on Ubuntu 18.04

In this tutorial we learn how to install trac on Ubuntu 18.04. trac is Enhanced wiki and issue tracking system for software development projects

Introduction

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

What is trac

trac is:

Trac uses a minimalistic approach to web-based software project management. Its mission is to help developers write great software while staying out of the way. Trac should impose as little as possible on a team’s established development process and policies. It provides an interface to Subversion (or other version control systems), an integrated Wiki and convenient reporting facilities. Trac allows wiki markup in issue descriptions and commit messages, creating links and seamless references between bugs, tasks, changesets, files and wiki pages. A timeline shows all current and past project events in order, making the acquisition of an overview of the project and tracking progress very easy. The roadmap shows the road ahead, listing the upcoming milestones.

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

sudo apt-get -y install trac

Install trac Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install trac

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

sudo aptitude -y install trac

How To Uninstall trac on Ubuntu 18.04

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

sudo apt-get remove trac

Uninstall trac And Its Dependencies

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

sudo apt-get -y autoremove trac

Remove trac Configurations and Data

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

sudo apt-get -y purge trac

Remove trac configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge trac

References

Summary

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