How To Install libdpkg-parse-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libdpkg-parse-perl
on Ubuntu 20.04.
What is libdpkg-parse-perl
libdpkg-parse-perl is:
DPKG::Parse contains utilities to parse the various files created by dpkg and turn them into helpful Perl objects. Current files understood by various DPKG::Parse modules:
/var/lib/dpkg/status - DPKG::Parse::Status
/var/lib/dpkg/available - DPKG::Parse::Available
Packages.gz - DPKG::Parse::Packages
See each module’s documentation for particulars - You should not be calling DPKG::Parse directly.
There are three methods to install libdpkg-parse-perl
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 libdpkg-parse-perl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libdpkg-parse-perl
using apt-get
by running the following command:
sudo apt-get -y install libdpkg-parse-perl
Install libdpkg-parse-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libdpkg-parse-perl
using apt
by running the following command:
sudo apt -y install libdpkg-parse-perl
Install libdpkg-parse-perl 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 libdpkg-parse-perl
using aptitude
by running the following command:
sudo aptitude -y install libdpkg-parse-perl
How To Uninstall libdpkg-parse-perl on Ubuntu 20.04
To uninstall only the libdpkg-parse-perl
package we can use the following command:
sudo apt-get remove libdpkg-parse-perl
Uninstall libdpkg-parse-perl And Its Dependencies
To uninstall libdpkg-parse-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libdpkg-parse-perl
Remove libdpkg-parse-perl Configurations and Data
To remove libdpkg-parse-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libdpkg-parse-perl
Remove libdpkg-parse-perl configuration, data, and all of its dependencies
We can use the following command to remove libdpkg-parse-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libdpkg-parse-perl
References
Summary
In this tutorial we learn how to install libdpkg-parse-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.