How To Install biosdevname on Ubuntu 18.04

In this tutorial we learn how to install biosdevname on Ubuntu 18.04. biosdevname is apply BIOS-given names to network devices

Introduction

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

What is biosdevname

biosdevname is:

biosdevname in its simplest form takes a kernel device name as an argument, and returns the BIOS-given name it “should” be.

This is necessary on systems where the BIOS name for a given device (e.g. the label on the chassis is “Gb1”) doesn’t map directly and obviously to the kernel name (e.g. eth0).

This also works as a straight udev rule, which is provided.

Home Page: http://linux.dell.com/biosdevname/

There are three methods to install biosdevname 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 biosdevname Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install biosdevname

Install biosdevname Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install biosdevname

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

sudo aptitude -y install biosdevname

How To Uninstall biosdevname on Ubuntu 18.04

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

sudo apt-get remove biosdevname

Uninstall biosdevname And Its Dependencies

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

sudo apt-get -y autoremove biosdevname

Remove biosdevname Configurations and Data

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

sudo apt-get -y purge biosdevname

Remove biosdevname configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge biosdevname

References

Summary

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