How To Install psf-unifont on Ubuntu 18.04

In this tutorial we learn how to install psf-unifont on Ubuntu 18.04. psf-unifont is PSF (console) version of GNU Unifont with APL support

Introduction

In this tutorial we learn how to install psf-unifont on Ubuntu 18.04.

What is psf-unifont

psf-unifont is:

This contains a PSF font (Unifont-APL8x16.psf) as a console frame buffer font with a subset of Unifont for use with GNU APL and other APL implementations. The font is installed in “/usr/share/consolefonts/”. This PSF font is only suitable for running in console mode, not under the X Window System.

A PSF font allows a maximum of 512 glyphs. The glyph subset in this font includes ASCII, Latin-1, “oe” and “OE” ligatures for French, the Euro sign, Unicode Box Drawing, Unicode Block Elements, plus various glyphs for APL support and some other miscellaneous glyphs. The font is monospaced, 8 pixels wide by 16 pixels tall.

Consider using the TrueType version instead (ttf-unifont) if you are not running in console mode, because that version is scalable to any point size and has proper combining character support.

There are three methods to install psf-unifont on Ubuntu 18.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 psf-unifont Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install psf-unifont

Install psf-unifont Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install psf-unifont

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

sudo aptitude -y install psf-unifont

How To Uninstall psf-unifont on Ubuntu 18.04

To uninstall only the psf-unifont package we can use the following command:

sudo apt-get remove psf-unifont

Uninstall psf-unifont And Its Dependencies

To uninstall psf-unifont and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove psf-unifont

Remove psf-unifont Configurations and Data

To remove psf-unifont configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge psf-unifont

Remove psf-unifont configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge psf-unifont

References

Summary

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