Install libparse-debian-packages-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libparse-debian-packages-perl
module for parsing the data from a Debian Packages.gz
Parse::Debian::Packages parses the Packages files used by the Debian package management tools. . It presents itself as an iterator. Each call of the ->next method will return the next package found in the file.