How To Install fonts-3270 on Ubuntu 18.04

In this tutorial we learn how to install fonts-3270 on Ubuntu 18.04. fonts-3270 is monospaced font based on IBM 3270 terminals

Introduction

In this tutorial we learn how to install fonts-3270 on Ubuntu 18.04.

What is fonts-3270

fonts-3270 is:

This font is derived from the x3270 font, which, in turn, was translated from the one in Georgia Tech’s 3270tool, which was itself hand-copied from a 3270 terminal.

While looking reasonably close to its bitmap ancestors, this is a vector font that looks good at any size. Its recommended use is, obviously, a text terminal, same as nearly half a century ago.

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

sudo apt-get -y install fonts-3270

Install fonts-3270 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install fonts-3270

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

sudo aptitude -y install fonts-3270

How To Uninstall fonts-3270 on Ubuntu 18.04

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

sudo apt-get remove fonts-3270

Uninstall fonts-3270 And Its Dependencies

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

sudo apt-get -y autoremove fonts-3270

Remove fonts-3270 Configurations and Data

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

sudo apt-get -y purge fonts-3270

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

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

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

References

Summary

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