How to Uninstall and Install libpkgconfig-perl Ubuntu 22.04

Updated: October 23, 2022

PkgConfig provides a pure-perl, core-only replacement for the pkg-config utility. While pkg-config is a compiled binary linked with glib, the pure-perl version has no such requirement, and will run wherever Perl ( >= 5.6 ) does. The package provides a pure perl binary called ppkg-config which can be used as well as pkg-config. In this tutorial, I will show you how to install libpkgconfig-perl on Ubuntu 22.04.

Requirements to install

  • Operating system: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Check that you can run sudo commands.

Prerequisites to install libpkgconfig-perl on Ubuntu 22.04

Install libpkgconfig-perl Ubuntu 22.04

libpkgconfig-perl is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install libpkgconfig-perl using APT

This is a popular method for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get libpkgconfig-perl on your Ubuntu 22.04.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. You can now install libpkgconfig-perl Ubuntu by executing this command in the terminal.

sudo apt install libpkgconfig-perl

Install libpkgconfig-perl using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. You must run this command to install it if you haven’t already done so on Ubuntu.

sudo apt install aptitude

After that, you can now install libpkgconfig-perl, just following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install libpkgconfig-perl Ubuntu by executing this command in the terminal.

sudo aptitude -y install libpkgconfig-perl

Uninstall libpkgconfig-perl on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a libpkgconfig-perl, can be easily uninstalled by anyone.

This command can be used to uninstall libpkgconfig-perl from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove libpkgconfig-perl

To uninstall libpkgconfig-perl and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge libpkgconfig-perl

Conclusion

In this guide, I showed you ways to install libpkgconfig-perl on Ubuntu 22.04 and some ways to uninstall libpkgconfig-perl too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.