How To Install libbind-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libbind-dev on Ubuntu 20.04.
What is libbind-dev
libbind-dev is:
This package delivers archive-style libraries, header files, and API man pages for libbind, libdns, libisc, and liblwres. These are only needed if you want to compile other packages that need more nameserver API than the resolver code provided in libc.
Package: libbind-dev Architecture: amd64 Version: 1:9.11.16+dfsg-3~build1 Priority: optional Section: libdevel Source: bind9-libs Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian DNS Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 7754 Depends: libbind9-161 (= 1:9.11.16+dfsg-3~build1), libdns1109 (= 1:9.11.16+dfsg-3~build1), libirs161 (= 1:9.11.16+dfsg-3~build1), libisc1105 (= 1:9.11.16+dfsg-3~build1), libisccc161 (= 1:9.11.16+dfsg-3~build1), libisccfg163 (= 1:9.11.16+dfsg-3~build1), liblwres161 (= 1:9.11.16+dfsg-3~build1) Replaces: bind9 (« 1:9.10.3.dfsg.P2-4) Filename: pool/main/b/bind9-libs/libbind-dev_9.11.16+dfsg-3~build1_amd64.deb Size: 1397440 MD5sum: 6ac4a1bde647351cd845a395d330461f SHA1: e7fe57c2ace3b1dbfa160690abfa78f0ade9cafd SHA256: 1990429c7b14bbd9b17ec1612c0bc8e231fb11d41db637120bc4ee25fc36fed0 Homepage: https://www.isc.org/downloads/bind/ Description-en: Static Libraries and Headers used by BIND This package delivers archive-style libraries, header files, and API man pages for libbind, libdns, libisc, and liblwres. These are only needed if you want to compile other packages that need more nameserver API than the resolver code provided in libc.
There are three methods to install libbind-dev 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 libbind-dev Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install libbind-dev using apt-get by running the following command:
sudo apt-get -y install libbind-dev
Install libbind-dev Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libbind-dev using apt by running the following command:
sudo apt -y install libbind-dev
Install libbind-dev 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 libbind-dev using aptitude by running the following command:
sudo aptitude -y install libbind-dev
How To Uninstall libbind-dev on Ubuntu 20.04
To uninstall only the libbind-dev package we can use the following command:
sudo apt-get remove libbind-dev
Uninstall libbind-dev And Its Dependencies
To uninstall libbind-dev and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libbind-dev
Remove libbind-dev Configurations and Data
To remove libbind-dev configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libbind-dev
Remove libbind-dev configuration, data, and all of its dependencies
We can use the following command to remove libbind-dev configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libbind-dev
References
Summary
In this tutorial we learn how to install libbind-dev package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.