How To Install nmstate on Fedora 36

In this tutorial we learn how to install nmstate in Fedora 36. nmstate is Declarative network manager API

Introduction

In this tutorial we learn how to install nmstate on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install nmstate.

Install nmstate on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove nmstate

nmstate Package Contents on Fedora 36

/usr/bin/nmstate-autoconf
/usr/bin/nmstatectl
/usr/lib/python3.10/site-packages/nmstatectl
/usr/lib/python3.10/site-packages/nmstatectl/__init__.py
/usr/lib/python3.10/site-packages/nmstatectl/__pycache__
/usr/lib/python3.10/site-packages/nmstatectl/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/nmstatectl/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/nmstatectl/__pycache__/nmstate_autoconf.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/nmstatectl/__pycache__/nmstate_autoconf.cpython-310.pyc
/usr/lib/python3.10/site-packages/nmstatectl/__pycache__/nmstatectl.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/nmstatectl/__pycache__/nmstatectl.cpython-310.pyc
/usr/lib/python3.10/site-packages/nmstatectl/nmstate_autoconf.py
/usr/lib/python3.10/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_dpdk_absent.yml
/usr/share/doc/nmstate/examples/ovsbridge_dpdk_create.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/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/nmstate-autoconf.8.gz
/usr/share/man/man8/nmstatectl.8.gz

References

Summary

In this tutorial we learn how to install nmstate on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).