Ways to Install and Uninstall ipset-persistent on Ubuntu 22.04

Updated: September 6, 2022

netfilter-persistent is a loader for netfilter configuration using a plugin-based architecture. In this tutorial, I will show you ways to install ipset-persistent Ubuntu 22.04.

Requirements to install

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install ipset-persistent on Ubuntu 22.04

Install ipset-persistent Ubuntu 22.04

ipset-persistent is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install ipset-persistent using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get ipset-persistent on your Ubuntu 22.04.

Step 1: Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. You can now install ipset-persistent Ubuntu by executing this command in the terminal.

sudo apt-get install ipset-persistent

Install ipset-persistent using Aptitude

You must run this command to install Aptitude if you haven’t already done so on Ubuntu.

sudo apt -y install aptitude

Then, you can now install ipset-persistent by following these steps:

Step 1: Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install ipset-persistent Ubuntu by executing this command in the terminal.

sudo aptitude -y install ipset-persistent

Uninstall ipset-persistent on Ubuntu 22.04

Have you ever thought about how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone can easily uninstall any program, not just a package.

You can uninstall ipset-persistent on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove ipset-persistent

If you want to uninstall ipset-persistent and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge ipset-persistent

Ending

In this tutorial, I showed you ways to install ipset-persistent on Ubuntu 22.04 and some ways to uninstall ipset-persistent too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.