How To Install openvswitch on Fedora 34

openvswitch is Open vSwitch daemon/database/utilities Open vSwitch daemon/database/utilities

Introduction

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

What is openvswitch

Open vSwitch provides standard network bridging functions and support for the OpenFlow protocol for remote per-flow control of traffic. openvswitch 2.15.0 2.fc34 x86_64 2.0 M openvswitch-2.15.0-2.fc34.src.rpm fedora Open vSwitch daemon/database/utilities http ASL 2.0 and LGPLv2+ and SISSL Open vSwitch provides standard network bridging functions and support for the OpenFlow protocol for remote per-flow control of traffic.

We can use yum or dnf to install openvswitch on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install openvswitch.

Install openvswitch 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 openvswitch using dnf by running the following command:

sudo dnf -y install openvswitch

Install openvswitch 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 openvswitch using yum by running the following command:

sudo yum -y install openvswitch

How To Uninstall openvswitch on Fedora 34

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

sudo dnf remove openvswitch

openvswitch Package Contents on Fedora 34

/etc/bash_completion.d/ovs-appctl-bashcomp.bash
/etc/bash_completion.d/ovs-vsctl-bashcomp.bash
/etc/logrotate.d/openvswitch
/etc/openvswitch
/etc/openvswitch/.conf.db.~lock~
/etc/openvswitch/conf.db
/etc/openvswitch/default.conf
/etc/openvswitch/system-id.conf
/etc/sysconfig/openvswitch
/run/openvswitch
/usr/bin/ovs-appctl
/usr/bin/ovs-dpctl
/usr/bin/ovs-dpctl-top
/usr/bin/ovs-ofctl
/usr/bin/ovs-pki
/usr/bin/ovs-vsctl
/usr/bin/ovsdb-client
/usr/bin/ovsdb-tool
/usr/bin/vtep-ctl
/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/71d093109d3e2c64f5986dd9991dde152b10b7
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/1657c9d4c9ab819fd029886f83f8c85b5e7edd
/usr/lib/.build-id/19
/usr/lib/.build-id/19/9234e5cdb7050ad5e329f3fd905440f6d7e127
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/c0fc700f245b0331744889682733f491d64357
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/c00838b01a2f630e0c1ac08ce675a6f3274ab9
/usr/lib/.build-id/70
/usr/lib/.build-id/70/6ae10739b9b456639fa994321a0ae1657a9053
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/c87158f62b244e3b6f600cb6519c9bef8ffa0a
/usr/lib/.build-id/90
/usr/lib/.build-id/90/4c906813eda9622409f1e50e5922a7f5e31412
/usr/lib/.build-id/96
/usr/lib/.build-id/96/916c6f266ec07de47aa02826dfd46fc05c1222
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/364763cc0e20e6d1645c987a53bade86ccbe92
/usr/lib/.build-id/af
/usr/lib/.build-id/af/f0595790d875b011ac13d884eff5ec594903e5
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/239f85705307dea115ac81c20f0e0eeff5f385
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/6eb0e5e62a765a433bf0142df71ebc07d900bb
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/07f6b0a389ab87fac091c2ffe6fe924ba641d2
/usr/lib/systemd/system/openvswitch.service
/usr/lib/systemd/system/ovs-delete-transient-ports.service
/usr/lib/systemd/system/ovs-vswitchd.service
/usr/lib/systemd/system/ovsdb-server.service
/usr/lib/udev/rules.d/91-vfio.rules
/usr/lib64/libofproto-2.15.so.0
/usr/lib64/libofproto-2.15.so.0.0.0
/usr/lib64/libopenvswitch-2.15.so.0
/usr/lib64/libopenvswitch-2.15.so.0.0.0
/usr/lib64/libovsdb-2.15.so.0
/usr/lib64/libovsdb-2.15.so.0.0.0
/usr/lib64/libsflow-2.15.so.0
/usr/lib64/libsflow-2.15.so.0.0.0
/usr/lib64/libvtep-2.15.so.0
/usr/lib64/libvtep-2.15.so.0.0.0
/usr/sbin/ovs-bugtool
/usr/sbin/ovs-vswitchd
/usr/sbin/ovsdb-server
/usr/share/doc/openvswitch
/usr/share/doc/openvswitch/LICENSE
/usr/share/doc/openvswitch/NEWS
/usr/share/doc/openvswitch/NOTICE
/usr/share/doc/openvswitch/README.RHEL.rst
/usr/share/doc/openvswitch/README.rst
/usr/share/man/man1/ovsdb-client.1.gz
/usr/share/man/man1/ovsdb-server.1.gz
/usr/share/man/man1/ovsdb-tool.1.gz
/usr/share/man/man5/ovs-vswitchd.conf.db.5.gz
/usr/share/man/man5/ovsdb-server.5.gz
/usr/share/man/man5/ovsdb.5.gz
/usr/share/man/man5/vtep.5.gz
/usr/share/man/man7/ovs-actions.7.gz
/usr/share/man/man7/ovs-fields.7.gz
/usr/share/man/man7/ovsdb-server.7.gz
/usr/share/man/man7/ovsdb.7.gz
/usr/share/man/man8/ovs-appctl.8.gz
/usr/share/man/man8/ovs-bugtool.8.gz
/usr/share/man/man8/ovs-ctl.8.gz
/usr/share/man/man8/ovs-dpctl-top.8.gz
/usr/share/man/man8/ovs-dpctl.8.gz
/usr/share/man/man8/ovs-kmod-ctl.8.gz
/usr/share/man/man8/ovs-ofctl.8.gz
/usr/share/man/man8/ovs-parse-backtrace.8.gz
/usr/share/man/man8/ovs-pki.8.gz
/usr/share/man/man8/ovs-vsctl.8.gz
/usr/share/man/man8/ovs-vswitchd.8.gz
/usr/share/man/man8/vtep-ctl.8.gz
/usr/share/openvswitch/bugtool-plugins
/usr/share/openvswitch/bugtool-plugins/kernel-info
/usr/share/openvswitch/bugtool-plugins/kernel-info/openvswitch.xml
/usr/share/openvswitch/bugtool-plugins/network-status
/usr/share/openvswitch/bugtool-plugins/network-status/openvswitch.xml
/usr/share/openvswitch/bugtool-plugins/system-configuration
/usr/share/openvswitch/bugtool-plugins/system-configuration.xml
/usr/share/openvswitch/bugtool-plugins/system-configuration/openvswitch.xml
/usr/share/openvswitch/bugtool-plugins/system-logs
/usr/share/openvswitch/bugtool-plugins/system-logs/openvswitch.xml
/usr/share/openvswitch/scripts/openvswitch.init
/usr/share/openvswitch/scripts/ovs-bugtool-daemons-ver
/usr/share/openvswitch/scripts/ovs-bugtool-fdb-show
/usr/share/openvswitch/scripts/ovs-bugtool-get-dpdk-nic-numa
/usr/share/openvswitch/scripts/ovs-bugtool-get-port-stats
/usr/share/openvswitch/scripts/ovs-bugtool-ovs-appctl-dpif
/usr/share/openvswitch/scripts/ovs-bugtool-ovs-bridge-datapath-type
/usr/share/openvswitch/scripts/ovs-bugtool-ovs-ofctl-loop-over-bridges
/usr/share/openvswitch/scripts/ovs-bugtool-ovs-vswitchd-threads-affinity
/usr/share/openvswitch/scripts/ovs-bugtool-qos-configs
/usr/share/openvswitch/scripts/ovs-bugtool-tc-class-show
/usr/share/openvswitch/scripts/ovs-check-dead-ifs
/usr/share/openvswitch/scripts/ovs-ctl
/usr/share/openvswitch/scripts/ovs-kmod-ctl
/usr/share/openvswitch/scripts/ovs-lib
/usr/share/openvswitch/scripts/ovs-save
/usr/share/openvswitch/scripts/ovs-systemd-reload
/usr/share/openvswitch/scripts/ovs-vtep
/usr/share/openvswitch/vswitch.ovsschema
/usr/share/openvswitch/vtep.ovsschema
/var/lib/openvswitch
/var/lib/openvswitch/pki
/var/log/openvswitch
/etc/bash_completion.d/ovs-appctl-bashcomp.bash
/etc/bash_completion.d/ovs-vsctl-bashcomp.bash
/etc/logrotate.d/openvswitch
/etc/openvswitch
/etc/openvswitch/.conf.db.~lock~
/etc/openvswitch/conf.db
/etc/openvswitch/default.conf
/etc/openvswitch/system-id.conf
/etc/sysconfig/openvswitch
/run/openvswitch
/usr/bin/ovs-appctl
/usr/bin/ovs-dpctl
/usr/bin/ovs-dpctl-top
/usr/bin/ovs-ofctl
/usr/bin/ovs-pki
/usr/bin/ovs-vsctl
/usr/bin/ovsdb-client
/usr/bin/ovsdb-tool
/usr/bin/vtep-ctl
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/00241242d564ac11f45fc03deb585cf70ada6b
/usr/lib/.build-id/05
/usr/lib/.build-id/05/a3287cb31cfa181a1a37782f680d8c38208ae1
/usr/lib/.build-id/22
/usr/lib/.build-id/22/1005438ebbe55f697ce7508fdeb6637f8cef77
/usr/lib/.build-id/23
/usr/lib/.build-id/23/96e4435f52a49241f0828c434f98b8101c5b5a
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/fdde32886cc2c926f38fe9017091942dd28507
/usr/lib/.build-id/62
/usr/lib/.build-id/62/996577ae5af92f145d32ca9f5baaa305e0e314
/usr/lib/.build-id/73
/usr/lib/.build-id/73/07894d08043e6255759c1f9bd940301b82a934
/usr/lib/.build-id/80
/usr/lib/.build-id/80/95d9d29b91933d16875b40d72ba31a1cd80f7a
/usr/lib/.build-id/92
/usr/lib/.build-id/92/4e1141485db3dbe48620746ecc2b60e661b319
/usr/lib/.build-id/99
/usr/lib/.build-id/99/81ce1ff7e04c7ec90b3b14bae65912ad95a3e6
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/280fe12ec908466e5e4f68d29aec96c4055005
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/416f3776231d800d28850e1b56d67488b81fc2
/usr/lib/.build-id/de
/usr/lib/.build-id/de/7fdc3db7c92a22834c2dfcfcaf33161cf51062
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/5294fd3d4465db1038ceb19cccc5d972a51259
/usr/lib/libofproto-2.15.so.0
/usr/lib/libofproto-2.15.so.0.0.0
/usr/lib/libopenvswitch-2.15.so.0
/usr/lib/libopenvswitch-2.15.so.0.0.0
/usr/lib/libovsdb-2.15.so.0
/usr/lib/libovsdb-2.15.so.0.0.0
/usr/lib/libsflow-2.15.so.0
/usr/lib/libsflow-2.15.so.0.0.0
/usr/lib/libvtep-2.15.so.0
/usr/lib/libvtep-2.15.so.0.0.0
/usr/lib/systemd/system/openvswitch.service
/usr/lib/systemd/system/ovs-delete-transient-ports.service
/usr/lib/systemd/system/ovs-vswitchd.service
/usr/lib/systemd/system/ovsdb-server.service
/usr/lib/udev/rules.d/91-vfio.rules
/usr/sbin/ovs-bugtool
/usr/sbin/ovs-vswitchd
/usr/sbin/ovsdb-server
/usr/share/doc/openvswitch
/usr/share/doc/openvswitch/LICENSE
/usr/share/doc/openvswitch/NEWS
/usr/share/doc/openvswitch/NOTICE
/usr/share/doc/openvswitch/README.RHEL.rst
/usr/share/doc/openvswitch/README.rst
/usr/share/man/man1/ovsdb-client.1.gz
/usr/share/man/man1/ovsdb-server.1.gz
/usr/share/man/man1/ovsdb-tool.1.gz
/usr/share/man/man5/ovs-vswitchd.conf.db.5.gz
/usr/share/man/man5/ovsdb-server.5.gz
/usr/share/man/man5/ovsdb.5.gz
/usr/share/man/man5/vtep.5.gz
/usr/share/man/man7/ovs-actions.7.gz
/usr/share/man/man7/ovs-fields.7.gz
/usr/share/man/man7/ovsdb-server.7.gz
/usr/share/man/man7/ovsdb.7.gz
/usr/share/man/man8/ovs-appctl.8.gz
/usr/share/man/man8/ovs-bugtool.8.gz
/usr/share/man/man8/ovs-ctl.8.gz
/usr/share/man/man8/ovs-dpctl-top.8.gz
/usr/share/man/man8/ovs-dpctl.8.gz
/usr/share/man/man8/ovs-kmod-ctl.8.gz
/usr/share/man/man8/ovs-ofctl.8.gz
/usr/share/man/man8/ovs-parse-backtrace.8.gz
/usr/share/man/man8/ovs-pki.8.gz
/usr/share/man/man8/ovs-vsctl.8.gz
/usr/share/man/man8/ovs-vswitchd.8.gz
/usr/share/man/man8/vtep-ctl.8.gz
/usr/share/openvswitch/bugtool-plugins
/usr/share/openvswitch/bugtool-plugins/kernel-info
/usr/share/openvswitch/bugtool-plugins/kernel-info/openvswitch.xml
/usr/share/openvswitch/bugtool-plugins/network-status
/usr/share/openvswitch/bugtool-plugins/network-status/openvswitch.xml
/usr/share/openvswitch/bugtool-plugins/system-configuration
/usr/share/openvswitch/bugtool-plugins/system-configuration.xml
/usr/share/openvswitch/bugtool-plugins/system-configuration/openvswitch.xml
/usr/share/openvswitch/bugtool-plugins/system-logs
/usr/share/openvswitch/bugtool-plugins/system-logs/openvswitch.xml
/usr/share/openvswitch/scripts/openvswitch.init
/usr/share/openvswitch/scripts/ovs-bugtool-daemons-ver
/usr/share/openvswitch/scripts/ovs-bugtool-fdb-show
/usr/share/openvswitch/scripts/ovs-bugtool-get-dpdk-nic-numa
/usr/share/openvswitch/scripts/ovs-bugtool-get-port-stats
/usr/share/openvswitch/scripts/ovs-bugtool-ovs-appctl-dpif
/usr/share/openvswitch/scripts/ovs-bugtool-ovs-bridge-datapath-type
/usr/share/openvswitch/scripts/ovs-bugtool-ovs-ofctl-loop-over-bridges
/usr/share/openvswitch/scripts/ovs-bugtool-ovs-vswitchd-threads-affinity
/usr/share/openvswitch/scripts/ovs-bugtool-qos-configs
/usr/share/openvswitch/scripts/ovs-bugtool-tc-class-show
/usr/share/openvswitch/scripts/ovs-check-dead-ifs
/usr/share/openvswitch/scripts/ovs-ctl
/usr/share/openvswitch/scripts/ovs-kmod-ctl
/usr/share/openvswitch/scripts/ovs-lib
/usr/share/openvswitch/scripts/ovs-save
/usr/share/openvswitch/scripts/ovs-systemd-reload
/usr/share/openvswitch/scripts/ovs-vtep
/usr/share/openvswitch/vswitch.ovsschema
/usr/share/openvswitch/vtep.ovsschema
/var/lib/openvswitch
/var/lib/openvswitch/pki
/var/log/openvswitch

References

Summary

In this tutorial we learn how to install openvswitch on Fedora 34 using yum and dnf.