How To Install php-wikimedia-ip-set on Fedora 36

In this tutorial we learn how to install php-wikimedia-ip-set in Fedora 36. php-wikimedia-ip-set is Library to match IP addresses against CIDR specifications

Introduction

In this tutorial we learn how to install php-wikimedia-ip-set on Fedora 36.

What is php-wikimedia-ip-set

IPSet is a PHP library to match IPs against CIDR specs.

We can use yum or dnf to install php-wikimedia-ip-set on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-wikimedia-ip-set.

Install php-wikimedia-ip-set on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install php-wikimedia-ip-set using dnf by running the following command:

sudo dnf -y install php-wikimedia-ip-set

Install php-wikimedia-ip-set on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install php-wikimedia-ip-set using yum by running the following command:

sudo yum -y install php-wikimedia-ip-set

How To Uninstall php-wikimedia-ip-set on Fedora 36

To uninstall only the php-wikimedia-ip-set package we can use the following command:

sudo dnf remove php-wikimedia-ip-set

php-wikimedia-ip-set Package Contents on Fedora 36

/usr/share/doc/php-wikimedia-ip-set
/usr/share/doc/php-wikimedia-ip-set/README.md
/usr/share/licenses/php-wikimedia-ip-set
/usr/share/licenses/php-wikimedia-ip-set/COPYING
/usr/share/php/IPSet
/usr/share/php/IPSet/IPSet.php
/usr/share/php/IPSet/autoload.php

References

Summary

In this tutorial we learn how to install php-wikimedia-ip-set on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).