How To Install libnet-mac-vendor-perl on Ubuntu 18.04

In this tutorial we learn how to install libnet-mac-vendor-perl on Ubuntu 18.04. libnet-mac-vendor-perl is module to look up the vendor by OUI

Introduction

In this tutorial we learn how to install libnet-mac-vendor-perl on Ubuntu 18.04.

What is libnet-mac-vendor-perl

libnet-mac-vendor-perl is:

The Institute of Electrical and Electronics Engineers (IEEE) assigns an Organizational Unique Identifier (OUI) to manufacturers of network interfaces. Each interface has a Media Access Control (MAC) address of six bytes. The first three bytes are the OUI.

Net::MAC::Vendor allows you to take a MAC address and turn it into the OUI and vendor information. You can, for instance, scan a network, collect MAC addresses, and turn those addresses into vendors. With vendor information, you can often guess at what you are looking at (e.g. an Apple product).

You can use this as a module as its individual functions, or call it as a script with a list of MAC addresses as arguments. The module can figure it out.

There are three methods to install libnet-mac-vendor-perl 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 libnet-mac-vendor-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 libnet-mac-vendor-perl using apt-get by running the following command:

sudo apt-get -y install libnet-mac-vendor-perl

Install libnet-mac-vendor-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libnet-mac-vendor-perl using apt by running the following command:

sudo apt -y install libnet-mac-vendor-perl

Install libnet-mac-vendor-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 libnet-mac-vendor-perl using aptitude by running the following command:

sudo aptitude -y install libnet-mac-vendor-perl

How To Uninstall libnet-mac-vendor-perl on Ubuntu 18.04

To uninstall only the libnet-mac-vendor-perl package we can use the following command:

sudo apt-get remove libnet-mac-vendor-perl

Uninstall libnet-mac-vendor-perl And Its Dependencies

To uninstall libnet-mac-vendor-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libnet-mac-vendor-perl

Remove libnet-mac-vendor-perl Configurations and Data

To remove libnet-mac-vendor-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libnet-mac-vendor-perl

Remove libnet-mac-vendor-perl configuration, data, and all of its dependencies

We can use the following command to remove libnet-mac-vendor-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libnet-mac-vendor-perl

References

Summary

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