Pango is a library that offers high-quality text layout capabilities. With Pango, you can efficiently handle text rendering on various distributions, including Linux, Windows, and MacOS.
The main objective of this post is to practically implement the basic steps for installing Pango on Ubuntu 22.04.
How to Install Pango on Ubuntu 22.04?
The below methods can be utlized for installing Pango on your Ubuntu 22.04:
- Method 1: How to install Pango on Ubuntu 22.04 from APT?
- Method 2: How to Install Pango on Ubuntu 22.04 from Source?
Method 1: How to install Pango on Ubuntu 22.04 from APT?
In the first method, we will provide a simple command to install Pango using APT.
Step 1: Upgrade Ubuntu Packages
This is an important step for Ubuntu users to keep their machines updated. Ubuntu makes it easy for you to install the latest updates on your system through the command:
sudo apt upgrade -y


During the updating process, you can monitor the new updates on your system.
Step 2: Refresh Ubuntu Repository List
Next, run the update command to refresh the installed packages and update your system repository list:
sudo apt update

Here, you can see all packages are now up to date.
Step 3: Set up Pango from Terminal
Once you have prepared your system, execute the command to install the Pango package via the APT package installer:
sudo apt install libpango1.0-dev -y


The Pango packages have been installed successfully without encountering any error.
Step 4: Confirm Pango After Installation
After the installation process, the Pango package can be confirmed using the following command:
dpkg -l | grep libpango1.0-dev

As you can see, the Pingo (libpango1.0-dev) with version number 1.50.6 is now available on Ubuntu 22.04.
Method 2: How to Install Pango on Ubuntu 22.04 from Source?
In the second method, we will demonstrate how to install Pango using a source file (.deb).
Step 1: Open the Pango Website
Visit the following link which contains the complete packages of Pango for different distributions. Search the Pango which is compatible with your Ubuntu 22.04 system:
http://archive.ubuntu.com/ubuntu/pool/main/p/pango1.0/?C=M;O=D

You can either directly download the .deb file by clicking on it or copy the link.
Step 2: Download Pango via “wget”
Open the terminal window and paste the copied link with the “wget” command in the following manner to start the download file to your local drive:
wget http://archive.ubuntu.com/ubuntu/pool/main/p/pango1.0/libpango1.0-dev_1.52.0+ds-1_amd64.deb

The downloading process has been completed. Now, you can locate the downloaded Pango file in your local directory.
Step 3: Install Pango using dpkg
Navigate to the Pango source file (i.e. libpango1.0-dev*.deb) and use the following command to install the Pango package on your system:
sudo dpkg -i libpango1.0-dev_1.52.0+ds-1_amd64.deb


During the installation process, you may face some dependency issues. However, these issues can resolved using simple commands.
Step 4: Install Broken Dependencies
Utilize the command to fix the dependencies issues on your Ubuntu 22.04:
sudo apt --fix-broken install

How to Uninstall Pango from Ubuntu 22.04?
There are some useful commands provided by Ubuntu to uninstall the Pango from your system.
Step 1: Uninstall Pango
To completely remove the Pango package and all its relevant files, here is the one-line command that can be used from the terminal:
sudo apt autoremove --purge libpango1.0-dev


The command has removed all the files and dependencies associated with Pango.
Step 2: Verify Pango After Uninstallation
To check the Pango on your Ubuntu system after removing it, run the following command:
dpkg -l | grep libpango1.0-dev

The blank output on your terminal window indicates that you have successfully removed the Pango and its associated files from your system.
FAQs
Can I install the Pongo library on my Ubuntu 22.04?
Yes, through the command “sudo apt install libpango1.0-dev” you can set up the Pango on your Ubuntu 22.04.
How can I Install the Pongo library on Ubuntu from the source file (.deb)?
First, download the Pango source file in .deb format, locate the download file, and utilize sudo dpkg -i libpango1.0-dev*.deb to configure the Pango library on the Ubuntu 22.04 system.
From where I can download the Pango source files?
You can just visit the URL “http://archive.ubuntu.com/ubuntu/pool/main/p/pango1.0/?C=M;O=D” where you can find the compatible Pango for your Ubuntu system.
Conclusion
On Ubuntu 22.04, you can install the Pango using two different methods: APT and DPKG. To install Pango via APT package installer use, “sudo apt install libpango1.0-dev”. For the source, file first download the Pango in .deb format and then use “sudo dpkg -i libpango1.0-dev*.deb” to install the Pango. In this post, we have demonstrated both methods using simple steps for installing Panog on Ubuntu 22.04.