How To Install flannel on Fedora 34

flannel is Etcd address management agent for overlay networks

Introduction

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

What is flannel

Flannel is an etcd driven address management agent. Most commonly it is used to manage the ip addresses of overlay networks between systems running containers that need to communicate with one another.

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

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

sudo dnf -y install flannel

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

sudo yum -y install flannel

How To Uninstall flannel on Fedora 34

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

sudo dnf remove flannel

flannel Package Contents on Fedora 34

/etc/sysconfig/flanneld
/run/flannel
/usr/bin/flanneld
/usr/lib/.build-id
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/c880d9fd52d1781b9bbfd0c0ff4f722f59a8a7
/usr/lib/systemd/system/docker.service.d/flannel.conf
/usr/lib/systemd/system/flanneld.service
/usr/lib/tmpfiles.d/flannel.conf
/usr/libexec/flannel
/usr/libexec/flannel/mk-docker-opts.sh
/usr/share/doc/flannel
/usr/share/doc/flannel/CONTRIBUTING.md
/usr/share/doc/flannel/DCO
/usr/share/doc/flannel/MAINTAINERS
/usr/share/doc/flannel/NOTICE
/usr/share/doc/flannel/README.md
/usr/share/licenses/flannel
/usr/share/licenses/flannel/LICENSE

References

Summary

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