How To Install nmstate on Fedora 34

nmstate is Declarative network manager API

Introduction

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

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

Install nmstate on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install nmstate

Install nmstate on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 34

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

sudo dnf remove nmstate

nmstate Package Contents on Fedora 34

/usr/bin/nmstate-autoconf
/usr/bin/nmstatectl
/usr/lib/python3.9/site-packages/nmstatectl
/usr/lib/python3.9/site-packages/nmstatectl/__init__.py
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__/nmstate_autoconf.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__/nmstate_autoconf.cpython-39.pyc
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__/nmstate_varlink.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__/nmstate_varlink.cpython-39.pyc
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__/nmstatectl.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__/nmstatectl.cpython-39.pyc
/usr/lib/python3.9/site-packages/nmstatectl/io.nmstate.varlink
/usr/lib/python3.9/site-packages/nmstatectl/nmstate-varlink.service
/usr/lib/python3.9/site-packages/nmstatectl/nmstate_autoconf.py
/usr/lib/python3.9/site-packages/nmstatectl/nmstate_varlink.py
/usr/lib/python3.9/site-packages/nmstatectl/nmstatectl.py
/usr/lib/systemd/system/nmstate-varlink.service
/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/nmstate-autoconf.8.gz
/usr/share/man/man8/nmstatectl.8.gz
/usr/bin/nmstatectl
/usr/lib/python3.9/site-packages/nmstatectl
/usr/lib/python3.9/site-packages/nmstatectl/__init__.py
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__/nmstate_varlink.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__/nmstate_varlink.cpython-39.pyc
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__/nmstatectl.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/nmstatectl/__pycache__/nmstatectl.cpython-39.pyc
/usr/lib/python3.9/site-packages/nmstatectl/io.nmstate.varlink
/usr/lib/python3.9/site-packages/nmstatectl/nmstate-varlink.service
/usr/lib/python3.9/site-packages/nmstatectl/nmstate_varlink.py
/usr/lib/python3.9/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 Fedora 34 using yum and dnf.