How To Install lmodern on Debian 10

Learn how to install lmodern on Debian 10 with this tutorial. lmodern is scalable PostScript and OpenType fonts based on Computer Modern

Introduction

In this tutorial we learn how to install lmodern on Debian 10.

What is lmodern

lmodern is:

The Latin Modern fonts, also known as “lm fonts”, are a set of scalable fonts in PostScript Type 1 and OpenType formats. They are based on the PostScript Type 1 version of the Computer Modern fonts and contain many additional characters (mostly accented ones).

This package provides TeX support and Type1 (PostScript) fonts. If only the OpenType fonts are needed, please see the package fonts-lmodern.

See the description for fonts-lmodern package for more information.

There are three methods to install lmodern on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install lmodern Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install lmodern

Install lmodern Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install lmodern

Install lmodern 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install lmodern

How To Uninstall lmodern on Debian 10

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

sudo apt-get remove lmodern

Uninstall lmodern And Its Dependencies

To uninstall lmodern and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove lmodern

Remove lmodern Configurations and Data

To remove lmodern configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge lmodern

Remove lmodern configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge lmodern

Dependencies

lmodern have the following dependencies:

References

Summary

In this tutorial we learn how to install lmodern package on Debian 10 using different package management tools: apt, apt-get and aptitude.