How To Install bdf2psf on Debian 10

Learn how to install bdf2psf on Debian 10 with this tutorial. bdf2psf is font converter to generate console fonts from BDF source fonts

Introduction

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

What is bdf2psf

bdf2psf is:

This package provides a command-line converter that can be used in scripts to build console fonts from BDF sources automatically. The converter comes with a collection of font encodings that cover many of the world’s languages. The output font can use a different character encoding from the input. When the source font does not define a glyph for a particular symbol in the encoding table, that glyph position in the console font is not wasted but used for another symbol.

When deciding about the position in the font for a particular glyph, the converter takes into account that in text video modes the video adapter copies the eighth column of the glyph matrix of symbols positioned in the pseudographic area to the ninth column. In order to create fonts for text video modes, the width of the glyph matrix of the source BDF font should be seven, eight, or nine pixels; otherwise the converter creates fonts suitable for framebuffer only.

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

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

sudo apt-get update

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

sudo apt-get -y install bdf2psf

Install bdf2psf Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install bdf2psf

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

sudo aptitude -y install bdf2psf

How To Uninstall bdf2psf on Debian 10

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

sudo apt-get remove bdf2psf

Uninstall bdf2psf And Its Dependencies

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

sudo apt-get -y autoremove bdf2psf

Remove bdf2psf Configurations and Data

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

sudo apt-get -y purge bdf2psf

Remove bdf2psf configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge bdf2psf

Dependencies

bdf2psf have the following dependencies:

References

Summary

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