How To Install ldns on CentOS 8
Introduction
In this tutorial we learn how to install ldns on CentOS 8.
What is ldns
ldns is a library with the aim to simplify DNS programming in C. All low-level DNS/DNSSEC operations are supported. We also define a higher level API which allows a programmer to (for instance) create or sign packets. ldns 1.7.0 21.el8 x86_64 166 k ldns-1.7.0-21.el8.src.rpm appstream Low-level DNS(SEC) library with API http BSD ldns is a library with the aim to simplify DNS programming in C. All low-level DNS/DNSSEC operations are supported. We also define a higher level API which allows a programmer to (for instance) create or sign packets.
We can use yum or dnf to install ldns on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install ldns.
Install ldns on CentOS 8 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install ldns using dnf by running the following command:
sudo dnf -y install ldns
Install ldns on CentOS 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install ldns using yum by running the following command:
sudo yum -y install ldns
How To Uninstall ldns on CentOS 8
To uninstall only the ldns package we can use the following command:
sudo dnf remove ldns
ldns Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/45281380b4f5b1feb6b4e072ead74f2767b8d3
/usr/lib/libldns.so.2
/usr/lib/libldns.so.2.0.0
/usr/share/doc/ldns
/usr/share/doc/ldns/README
/usr/share/licenses/ldns
/usr/share/licenses/ldns/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/963da7b1a77d1ecda746f8c70505eb66b44733
/usr/lib64/libldns.so.2
/usr/lib64/libldns.so.2.0.0
/usr/share/doc/ldns
/usr/share/doc/ldns/README
/usr/share/licenses/ldns
/usr/share/licenses/ldns/LICENSE
References
- [ldns website](http://www.nlnetlabs.nl/ldns/ http://www.nlnetlabs.nl/ldns/)
Summary
In this tutorial we learn how to install ldns on CentOS 8 using yum and dnf.