How To Install sfnt2woff-zopfli on Debian 10

Learn how to install sfnt2woff-zopfli on Debian 10 with this tutorial. sfnt2woff-zopfli is Create WOFF files with Zopfli compression

Introduction

In this tutorial we learn how to install sfnt2woff-zopfli on Debian 10.

What is sfnt2woff-zopfli

sfnt2woff-zopfli is:

This is a modified version of the sfnt2woff utility that uses Zopfli as a compression algorithm instead of zlib. This results in compression gains of, on average, 5-8% compared to regular WOFF files. Zopfli generates compressed output that is compatible with regular zlib compression so the resulting WOFF files can be used everywhere.

This package provides two tools:

  • sfnt2woff-zopfli: convert OpenType fonts to WOFF
  • woff2sfnt-zopfli: convert WOFF fonts to OpenType

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

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

sudo apt-get update

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

sudo apt-get -y install sfnt2woff-zopfli

Install sfnt2woff-zopfli Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install sfnt2woff-zopfli

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

sudo aptitude -y install sfnt2woff-zopfli

How To Uninstall sfnt2woff-zopfli on Debian 10

To uninstall only the sfnt2woff-zopfli package we can use the following command:

sudo apt-get remove sfnt2woff-zopfli

Uninstall sfnt2woff-zopfli And Its Dependencies

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

sudo apt-get -y autoremove sfnt2woff-zopfli

Remove sfnt2woff-zopfli Configurations and Data

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

sudo apt-get -y purge sfnt2woff-zopfli

Remove sfnt2woff-zopfli configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge sfnt2woff-zopfli

Dependencies

sfnt2woff-zopfli have the following dependencies:

References

Summary

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