How To Install prerex on Ubuntu 22.04

In this tutorial we learn how to install prerex on Ubuntu 22.04. prerex is course prerequisite chart editor for LaTeX/TikZ

Introduction

In this tutorial we learn how to install prerex on Ubuntu 22.04.

What is prerex

prerex is:

prerex is an editor for creating esthetically pleasing course prerequisite charts using the TikZ LaTeX package.

The editor supports add, remove, cut-and-paste, and edit operations on diagram elements, and shifts of a list of specified elements or the entire diagram. The edited diagram may be saved, re-processed, and viewed in a PDF viewer, without exiting the editor.

Course prerequisite charts allow students to easily determine which prerequisites, corequisites and recommended prerequisites they need for a given course and their time slots. Course prerequisite charts also highlight the courses required by a degree.

prerex is used by departments in several universities, including Queen’s University and Suffolk University.

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

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

sudo apt-get update

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

sudo apt-get -y install prerex

Install prerex Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install prerex

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

sudo aptitude -y install prerex

How To Uninstall prerex on Ubuntu 22.04

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

sudo apt-get remove prerex

Uninstall prerex And Its Dependencies

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

sudo apt-get -y autoremove prerex

Remove prerex Configurations and Data

To remove prerex configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge prerex

Remove prerex configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge prerex

References

Summary

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