How To Install nmstate on Rocky Linux 8

In this tutorial we learn how to install nmstate on Rocky Linux 8. nmstate is Declarative network manager API

Introduction

In this tutorial we learn how to install nmstate on Rocky Linux 8.

What is nmstate

Nmstate is a library with an accompanying command line tool that manages host networking settings in a declarative manner and aimed to satisfy enterprise needs to manage host networking through a northbound declarative API and multi provider support on the southbound.

We can use yum or dnf to install nmstate on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install nmstate.

Install nmstate on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install nmstate using dnf by running the following command:

sudo dnf -y install nmstate

Install nmstate on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install nmstate using yum by running the following command:

sudo yum -y install nmstate

How To Uninstall nmstate on Rocky Linux 8

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

sudo dnf remove nmstate

nmstate Package Contents on Rocky Linux 8

/usr/bin/nmstatectl
/usr/lib/python3.6/site-packages/nmstatectl
/usr/lib/python3.6/site-packages/nmstatectl/__init__.py
/usr/lib/python3.6/site-packages/nmstatectl/__pycache__
/usr/lib/python3.6/site-packages/nmstatectl/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/nmstatectl/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/nmstatectl/__pycache__/nmstate_varlink.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/nmstatectl/__pycache__/nmstate_varlink.cpython-36.pyc
/usr/lib/python3.6/site-packages/nmstatectl/__pycache__/nmstatectl.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/nmstatectl/__pycache__/nmstatectl.cpython-36.pyc
/usr/lib/python3.6/site-packages/nmstatectl/io.nmstate.varlink
/usr/lib/python3.6/site-packages/nmstatectl/nmstate-varlink.service
/usr/lib/python3.6/site-packages/nmstatectl/nmstate_varlink.py
/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py
/usr/share/doc/nmstate
/usr/share/doc/nmstate/README.md
/usr/share/doc/nmstate/examples
/usr/share/doc/nmstate/examples/bond_linuxbridge_vlan_absent.yml
/usr/share/doc/nmstate/examples/bond_linuxbridge_vlan_up.yml
/usr/share/doc/nmstate/examples/dns_edit_eth1.yml
/usr/share/doc/nmstate/examples/dns_remove.yml
/usr/share/doc/nmstate/examples/eth1_add_route.yml
/usr/share/doc/nmstate/examples/eth1_del_all_routes.yml
/usr/share/doc/nmstate/examples/eth1_with_ieee_802_1x.yml
/usr/share/doc/nmstate/examples/eth1_with_sriov.yml
/usr/share/doc/nmstate/examples/infiniband_pkey_ipoib_create.yml
/usr/share/doc/nmstate/examples/infiniband_pkey_ipoib_delete.yml
/usr/share/doc/nmstate/examples/linuxbrige_eth1_absent.yml
/usr/share/doc/nmstate/examples/linuxbrige_eth1_up.yml
/usr/share/doc/nmstate/examples/linuxbrige_eth1_up_port_vlan.yml
/usr/share/doc/nmstate/examples/mac_vlan_absent.yml
/usr/share/doc/nmstate/examples/mac_vlan_create.yml
/usr/share/doc/nmstate/examples/mac_vtap_absent.yml
/usr/share/doc/nmstate/examples/mac_vtap_create.yml
/usr/share/doc/nmstate/examples/ovsbridge_bond_create.yml
/usr/share/doc/nmstate/examples/ovsbridge_create.yml
/usr/share/doc/nmstate/examples/ovsbridge_delete.yml
/usr/share/doc/nmstate/examples/ovsbridge_patch_create.yml
/usr/share/doc/nmstate/examples/ovsbridge_patch_delete.yml
/usr/share/doc/nmstate/examples/ovsbridge_vlan_port.yml
/usr/share/doc/nmstate/examples/team0_absent.yml
/usr/share/doc/nmstate/examples/team0_with_port.yml
/usr/share/doc/nmstate/examples/veth1_absent.yml
/usr/share/doc/nmstate/examples/veth1_up.yml
/usr/share/doc/nmstate/examples/vlan101_eth1_absent.yml
/usr/share/doc/nmstate/examples/vlan101_eth1_down.yml
/usr/share/doc/nmstate/examples/vlan101_eth1_up.yml
/usr/share/doc/nmstate/examples/vrf0_absent.yml
/usr/share/doc/nmstate/examples/vrf0_with_eth1.yml
/usr/share/man/man8/nmstatectl.8.gz

References

Summary

In this tutorial we learn how to install nmstate on Rocky Linux 8 using yum and dnf.