How To Install nftables on Rocky Linux 8
In this tutorial we learn how to install nftables on Rocky Linux 8. nftables is Netfilter Tables userspace utillites
Introduction
In this tutorial we learn how to install nftables on Rocky Linux 8.
What is nftables
Netfilter Tables userspace utilities.
We can use yum or dnf to install nftables on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install nftables.
Install nftables on Rocky Linux 8 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install nftables using dnf by running the following command:
sudo dnf -y install nftables
Install nftables on Rocky Linux 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install nftables using yum by running the following command:
sudo yum -y install nftables
How To Uninstall nftables on Rocky Linux 8
To uninstall only the nftables package we can use the following command:
sudo dnf remove nftables
nftables Package Contents on Rocky Linux 8
/etc/nftables
/etc/nftables/main.nft
/etc/nftables/nat.nft
/etc/nftables/osf
/etc/nftables/osf/pf.os
/etc/nftables/router.nft
/etc/sysconfig/nftables.conf
/usr/lib/.build-id
/usr/lib/.build-id/18
/usr/lib/.build-id/18/28618f9e9e9b345c9d99217dc0841abbfd5197
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/a9c9bcccfebc419abea081af9d3aa309bf9b72
/usr/lib/libnftables.so.1
/usr/lib/libnftables.so.1.0.0
/usr/lib/systemd/system/nftables.service
/usr/sbin/nft
/usr/share/doc/nftables/examples/ct_helpers.nft
/usr/share/doc/nftables/examples/load_balancing.nft
/usr/share/doc/nftables/examples/secmark.nft
/usr/share/doc/nftables/examples/sets_and_maps.nft
/usr/share/licenses/nftables
/usr/share/licenses/nftables/COPYING
/usr/share/man/man5/libnftables-json.5.gz
/usr/share/man/man8/nft.8.gz
/etc/nftables
/etc/nftables/main.nft
/etc/nftables/nat.nft
/etc/nftables/osf
/etc/nftables/osf/pf.os
/etc/nftables/router.nft
/etc/sysconfig/nftables.conf
/usr/lib/.build-id
/usr/lib/.build-id/64
/usr/lib/.build-id/64/d602cd33007b3af6a2b387fbd3e31ab47fa6a7
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/fe79b5002b723c797b6ca194e71974d30e1388
/usr/lib/systemd/system/nftables.service
/usr/lib64/libnftables.so.1
/usr/lib64/libnftables.so.1.0.0
/usr/sbin/nft
/usr/share/doc/nftables/examples/ct_helpers.nft
/usr/share/doc/nftables/examples/load_balancing.nft
/usr/share/doc/nftables/examples/secmark.nft
/usr/share/doc/nftables/examples/sets_and_maps.nft
/usr/share/licenses/nftables
/usr/share/licenses/nftables/COPYING
/usr/share/man/man5/libnftables-json.5.gz
/usr/share/man/man8/nft.8.gz
References
Summary
In this tutorial we learn how to install nftables on Rocky Linux 8 using yum and dnf.