How To Install fonts-lmodern on Debian 10

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

Introduction

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

What is fonts-lmodern

fonts-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 the OpenType variant of these fonts. For support for TeX and Type 1 (PostScript) fonts, see the lmodern package.

The Latin Modern fonts were generated using MetaType1, a program based on MetaPost for generating PostScript Type 1 fonts (ftp://bop.eps.gda.pl/pub/metatype1/). Their size is reasonable and they are usually considered to be of good quality (compared to cm-super, for instance; however, cm-super contains font families that have no equivalent in this package; additionally, there are character sets that are supported by cm-super and not by the Latin Modern fonts).

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

sudo apt-get -y install fonts-lmodern

Install fonts-lmodern Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install fonts-lmodern

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

sudo aptitude -y install fonts-lmodern

How To Uninstall fonts-lmodern on Debian 10

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

sudo apt-get remove fonts-lmodern

Uninstall fonts-lmodern And Its Dependencies

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

sudo apt-get -y autoremove fonts-lmodern

Remove fonts-lmodern Configurations and Data

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

sudo apt-get -y purge fonts-lmodern

Remove fonts-lmodern configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge fonts-lmodern

Dependencies

fonts-lmodern have the following dependencies:

References

Summary

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