How To Install nmstate on CentOS 8
Introduction
In this tutorial we learn how to install nmstate
on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install nmstate.
Install nmstate on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8
To uninstall only the nmstate
package we can use the following command:
sudo dnf remove nmstate
nmstate Package Contents on CentOS 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 CentOS 8 using yum and dnf.