How To Install netplan.io on Ubuntu 20.04

In this tutorial we learn how to install netplan.io on Ubuntu 20.04. netplan.io is YAML network configuration abstraction for various backends YAML network configuration abstraction for various backends YAML network configuration abstraction for various backends

Introduction

In this tutorial we learn how to install netplan.io on Ubuntu 20.04.

What is netplan.io

netplan.io is:

netplan reads YAML network configuration files which are written by administrators, installers, cloud image instantiations, or other OS deployments. During early boot it then generates backend specific configuration files in /run to hand off control of devices to a particular networking daemon.

Currently supported backends are networkd and NetworkManager. Task: minimal, ubuntu-core

Package: netplan.io Status: install ok installed Priority: important Section: net Installed-Size: 368 Maintainer: Ubuntu Developers [email protected] Architecture: amd64 Multi-Arch: foreign Version: 0.101-0ubuntu3~20.04.2 Replaces: nplan (« 0.34~) Provides: nplan Depends: libc6 (>= 2.27), libglib2.0-0 (>= 2.33.14), libnetplan0 (>= 0.101-0ubuntu3~20.04.2), libsystemd0 (>= 243), libuuid1 (>= 2.16), iproute2, python3, python3-yaml, python3-netifaces, systemd (>= 239~) Suggests: network-manager | wpasupplicant, openvswitch-switch Breaks: network-manager (« 1.2.2-1), nplan (« 0.34~) Conflicts: netplan Description-en: YAML network configuration abstraction for various backends netplan reads YAML network configuration files which are written by administrators, installers, cloud image instantiations, or other OS deployments. During early boot it then generates backend specific configuration files in /run to hand off control of devices to a particular networking daemon.

Currently supported backends are networkd and NetworkManager. Homepage: https://netplan.io/ Original-Maintainer: Debian netplan Maintainers [email protected]

Package: netplan.io Architecture: amd64 Version: 0.99-0ubuntu1 Multi-Arch: foreign Priority: important Section: net Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian netplan Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 280 Provides: nplan Depends: libc6 (>= 2.27), libglib2.0-0 (>= 2.33.14), libnetplan0 (>= 0.99-0ubuntu1), libsystemd0 (>= 243), libuuid1 (>= 2.16), iproute2, python3, python3-yaml, python3-netifaces, systemd (>= 239~) Suggests: network-manager | wpasupplicant Conflicts: netplan Breaks: network-manager (« 1.2.2-1), nplan (« 0.34~) Replaces: nplan (« 0.34~) Filename: pool/main/n/netplan.io/netplan.io_0.99-0ubuntu1_amd64.deb Size: 70760 MD5sum: 2a48d9dc86aa2ab4d0453b0f54c67d03 SHA1: 432c76369c1e818ddc0bab7272ec3aaeb78c9930 SHA256: 2da4f91bb1eb254786a9fa591f9a67cd1ff163946fed5573b029153534d86cc6 Homepage: https://netplan.io/ Description-en: YAML network configuration abstraction for various backends netplan reads YAML network configuration files which are written by administrators, installers, cloud image instantiations, or other OS deployments. During early boot it then generates backend specific configuration files in /run to hand off control of devices to a particular networking daemon.

Currently supported backends are networkd and NetworkManager. Task: minimal, ubuntu-core

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

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

sudo apt-get update

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

sudo apt-get -y install netplan.io

Install netplan.io Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install netplan.io using apt by running the following command:

sudo apt -y install netplan.io

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

sudo aptitude -y install netplan.io

How To Uninstall netplan.io on Ubuntu 20.04

To uninstall only the netplan.io package we can use the following command:

sudo apt-get remove netplan.io

Uninstall netplan.io And Its Dependencies

To uninstall netplan.io and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove netplan.io

Remove netplan.io Configurations and Data

To remove netplan.io configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge netplan.io

Remove netplan.io configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge netplan.io

References

Summary

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