How To Install context on Ubuntu 20.04

In this tutorial we learn how to install context on Ubuntu 20.04. context is powerful TeX format

Introduction

In this tutorial we learn how to install context on Ubuntu 20.04.

What is context

context 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.

ConTeXt also integrates MetaFun, a superset of MetaPost and a powerful system for vector graphics. MetaFun can be used as a stand-alone system to produce figures, but its strength lies in enhancing ConTeXt documents with accurate graphic elements.

ConTeXt allows the users to specify formatting commands in English, Dutch, German, French, or Italian, and to use different typesetting engines (PDFTeX, XeTeX, Aleph, and soon LuaTeX) without changing the user interface. ConTeXt is developed rapidly, often in response to requests from the friendly user community.

There are three methods to install context on Ubuntu 20.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 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 using apt-get by running the following command:

sudo apt-get -y install context

Install context Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install context

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

sudo aptitude -y install context

How To Uninstall context on Ubuntu 20.04

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

sudo apt-get remove context

Uninstall context And Its Dependencies

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

sudo apt-get -y autoremove context

Remove context Configurations and Data

To remove context configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge context

Remove context configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge context

References

Summary

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