How To Install bgpq4 on Fedora 34

bgpq4 is Automate BGP filter generation based on routing database information

Introduction

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

What is bgpq4

The bgpq4 utility can be used to generate BGP filter configurations such as prefix lists, (extended) access lists, policy statement terms and AS path lists based on routing database information and supports output formats for BIRD, Cisco, Huawei, Juniper, MikroTik, Nokia and OpenBGPD routers as well as generic JSON.

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

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

sudo dnf -y install bgpq4

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

sudo yum -y install bgpq4

How To Uninstall bgpq4 on Fedora 34

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

sudo dnf remove bgpq4

bgpq4 Package Contents on Fedora 34

/usr/bin/bgpq4
/usr/lib/.build-id
/usr/lib/.build-id/45
/usr/lib/.build-id/45/38aa8a727aec5b6b1970517f7a1e7e38ae8e81
/usr/share/doc/bgpq4
/usr/share/doc/bgpq4/CHANGES
/usr/share/doc/bgpq4/README.md
/usr/share/licenses/bgpq4
/usr/share/licenses/bgpq4/COPYRIGHT
/usr/share/man/man8/bgpq4.8.gz
/usr/bin/bgpq4
/usr/lib/.build-id
/usr/lib/.build-id/45
/usr/lib/.build-id/45/5258c96a0331a31651bb60a0147ab683f4b0a4
/usr/share/doc/bgpq4
/usr/share/doc/bgpq4/CHANGES
/usr/share/doc/bgpq4/README.md
/usr/share/doc/bgpq4/bgpq4.html
/usr/share/licenses/bgpq4
/usr/share/licenses/bgpq4/COPYRIGHT
/usr/share/man/man8/bgpq4.8.gz

References

Summary

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