How To Install libdnet on Ubuntu 18.04

In this tutorial we learn how to install libdnet on Ubuntu 18.04. libdnet is DECnet Libraries

Introduction

In this tutorial we learn how to install libdnet on Ubuntu 18.04.

What is libdnet

libdnet is:

This package contains the libraries necessary for a functioning DECnet system. Most DECnet programs require these libraries to be present on the system. The libraries are: libdnet - the basic DECnet API as featured on Ultrix(R) systems libdnet_daemon - useful calls for writing DECnet daemons libdap - DAP (Data Access Protocol) C++ classes librms - High level library for programmatic access VMS files from Linux.

To do useful work with DECnet you will also need the dnet-common package.

If you’re looking for libdnet, the “dumb” networking library from libdnet.sf.net by Dug Song then you should install libdumbnet instead. Sorry for any confusion caused!

There are three methods to install libdnet on Ubuntu 18.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 libdnet Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libdnet using apt-get by running the following command:

sudo apt-get -y install libdnet

Install libdnet Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libdnet using apt by running the following command:

sudo apt -y install libdnet

Install libdnet 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 libdnet using aptitude by running the following command:

sudo aptitude -y install libdnet

How To Uninstall libdnet on Ubuntu 18.04

To uninstall only the libdnet package we can use the following command:

sudo apt-get remove libdnet

Uninstall libdnet And Its Dependencies

To uninstall libdnet and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libdnet

Remove libdnet Configurations and Data

To remove libdnet configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libdnet

Remove libdnet configuration, data, and all of its dependencies

We can use the following command to remove libdnet configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libdnet

References

Summary

In this tutorial we learn how to install libdnet package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.