How To Install context-modules on Ubuntu 22.04

In this tutorial we learn how to install context-modules on Ubuntu 22.04. context-modules is additional ConTeXt modules

Introduction

In this tutorial we learn how to install context-modules on Ubuntu 22.04.

What is context-modules

context-modules is:

ConTeXt is a document-production system based, like LaTeX, on the TeX typesetting system. Whereas LaTeX insulates the writer from typographical details, ConTeXt takes a complementary approach by providing structured interfaces for handling typography, including extensive support for colors, backgrounds, hyperlinks, presentations, figure-text integration, and conditional compilation. It gives the user extensive control over formatting while making it easy to create new layouts and styles without learning the TeX macro language. ConTeXt’s unified design averts the package clashes that can happen with LaTeX.

This package includes the following additional ConTeXt modules: account, algorithmic, animation, annotation, bnf, chromato, cmscbf, cmttbf, construction-plan, cyrillicnumbers, degrade, fancybreak, filter, french, fullpage, gantt, gnuplot, inifile, layout, letter, lettrine, mathsets, notes-zh-cn, rst, ruby, simplefonts, simpleslides, title, transliterator, typearea, typescripts, vim, visualcounter.

There are three methods to install context-modules 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 context-modules Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install context-modules

Install context-modules Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install context-modules

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

sudo aptitude -y install context-modules

How To Uninstall context-modules on Ubuntu 22.04

To uninstall only the context-modules package we can use the following command:

sudo apt-get remove context-modules

Uninstall context-modules And Its Dependencies

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

sudo apt-get -y autoremove context-modules

Remove context-modules Configurations and Data

To remove context-modules configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge context-modules

Remove context-modules configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge context-modules

References

Summary

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