How To Install libfreetype-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libfreetype-dev
on Ubuntu 20.04.
What is libfreetype-dev
libfreetype-dev is:
The FreeType project is a team of volunteers who develop free, portable and high-quality software solutions for digital typography. They specifically target embedded systems and focus on providing small, efficient and ubiquitous products.
This package contains all of the supplementary files you need to develop your own programs using the FreeType 2 library.
Package: libfreetype-dev Architecture: amd64 Version: 2.10.1-2 Multi-Arch: same Priority: optional Section: libdevel Source: freetype Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Hugh McMaster [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1928 Depends: libfreetype6 (= 2.10.1-2), libc6-dev | libc-dev, zlib1g-dev | libz-dev, libpng-dev Suggests: freetype2-doc (= 2.10.1-2) Breaks: libfreetype6-dev (« 2.10.1) Replaces: libfreetype6-dev (« 2.10.1) Filename: pool/main/f/freetype/libfreetype-dev_2.10.1-2_amd64.deb Size: 492556 MD5sum: 6750448e85065064bd5dc6d1b55c2236 SHA1: 8f39b89b0a5880f9eb38518b804d780a9dd21c84 SHA256: 2e8ffa17f9f563ab48fde40d7eb5de298849863cbe786052ada706040bb00793 Homepage: https://www.freetype.org Description-en: FreeType 2 font engine, development files The FreeType project is a team of volunteers who develop free, portable and high-quality software solutions for digital typography. They specifically target embedded systems and focus on providing small, efficient and ubiquitous products.
This package contains all of the supplementary files you need to develop your own programs using the FreeType 2 library.
There are three methods to install libfreetype-dev
on Ubuntu 20.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 libfreetype-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libfreetype-dev
using apt-get
by running the following command:
sudo apt-get -y install libfreetype-dev
Install libfreetype-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libfreetype-dev
using apt
by running the following command:
sudo apt -y install libfreetype-dev
Install libfreetype-dev 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 libfreetype-dev
using aptitude
by running the following command:
sudo aptitude -y install libfreetype-dev
How To Uninstall libfreetype-dev on Ubuntu 20.04
To uninstall only the libfreetype-dev
package we can use the following command:
sudo apt-get remove libfreetype-dev
Uninstall libfreetype-dev And Its Dependencies
To uninstall libfreetype-dev
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libfreetype-dev
Remove libfreetype-dev Configurations and Data
To remove libfreetype-dev
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libfreetype-dev
Remove libfreetype-dev configuration, data, and all of its dependencies
We can use the following command to remove libfreetype-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libfreetype-dev
References
Summary
In this tutorial we learn how to install libfreetype-dev
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.