How To Install fonts-open-sans on Ubuntu 18.04

In this tutorial we learn how to install fonts-open-sans on Ubuntu 18.04. fonts-open-sans is humanist sans serif typeface by Steve Matteson

Introduction

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

What is fonts-open-sans

fonts-open-sans is:

Open Sans is a clean and modern sans-serif typeface designed by Steve Matteson and commissioned by Google.

This version contains the complete 897 character set, which includes the standard ISO Latin 1, Latin CE, Greek and Cyrillic character sets.

Open Sans was designed with an upright stress, open forms and a neutral, yet friendly appearance. It was optimized for print, web, and mobile interfaces, and has excellent legibility characteristics in its letterforms.

Both condensed and non-condensed typefaces are included with this package.

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

sudo apt-get -y install fonts-open-sans

Install fonts-open-sans Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install fonts-open-sans

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

sudo aptitude -y install fonts-open-sans

How To Uninstall fonts-open-sans on Ubuntu 18.04

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

sudo apt-get remove fonts-open-sans

Uninstall fonts-open-sans And Its Dependencies

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

sudo apt-get -y autoremove fonts-open-sans

Remove fonts-open-sans Configurations and Data

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

sudo apt-get -y purge fonts-open-sans

Remove fonts-open-sans configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge fonts-open-sans

References

Summary

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