How To Install libdns-zoneparse-perl on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 428 words
Introduction
In this tutorial we learn how to install libdns-zoneparse-perl
on Ubuntu.
What is libdns-zoneparse-perl
libdns-zoneparse-perl is:
DNS::ZoneParse will parse a Zone File and put all the Resource Records (RRs) into an anonymous hash structure. At the moment, the following types of RRs are supported: SOA, NS, MX, A, CNAME, TXT, PTR. It could be useful for maintaining DNS zones, or for transferring DNS zones to other servers. If you want to generate an XML-friendly version of your zone files, it is easy to use XML::Simple with this module once you have parsed the zonefile.
DNS::ZoneParse scans the DNS zonefile - removes comments and seperates the file into its constituent records. It then parses each record and stores the records internally.
There are three methods to install libdns-zoneparse-perl
on Ubuntu. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libdns-zoneparse-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 libdns-zoneparse-perl
using apt-get
by running the following command:
sudo apt-get -y install libdns-zoneparse-perl
Install libdns-zoneparse-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libdns-zoneparse-perl
using apt
by running the following command:
sudo apt -y install libdns-zoneparse-perl
Install libdns-zoneparse-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 libdns-zoneparse-perl
using aptitude
by running the following command:
sudo aptitude -y install libdns-zoneparse-perl
How To Uninstall libdns-zoneparse-perl on Ubuntu
To uninstall only the libdns-zoneparse-perl
package we can use the following command:
sudo apt-get remove libdns-zoneparse-perl
Uninstall libdns-zoneparse-perl And Its Dependencies
To uninstall libdns-zoneparse-perl
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove libdns-zoneparse-perl
Remove libdns-zoneparse-perl Configurations and Data
To remove libdns-zoneparse-perl
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge libdns-zoneparse-perl
Remove libdns-zoneparse-perl configuration, data, and all of its dependencies
We can use the following command to remove libdns-zoneparse-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libdns-zoneparse-perl
Dependencies
libdns-zoneparse-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libdns-zoneparse-perl
package on Ubuntu using different package management tools: apt, apt-get and aptitude.