How to Install or Uninstall miniupnpd on Ubuntu 22.04

Updated: September 20, 2022

MiniUPnPd is a small daemon which can be installed on a NAT router to provide UPnP Internet Gateway Device and Port Mapping Protocol services, enabling clients on the LAN to ask for port redirections. It is compatible with peer-to-peer software, messaging applications, and games consoles that connect to online services (including Xbox LIVE and the PlayStation Network). I will show you how to install miniupnpd on Ubuntu 22.04 in this guide.

Prerequisites

  • Operating system: Ubuntu 22.04 is needed for miniupnpd to work
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install miniupnpd on Ubuntu 22.04

Install miniupnpd Ubuntu 22.04

miniupnpd is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install miniupnpd using APT

This is a popular method for installing Ubuntu packages since it’s simple to understand, even if you’re new to Linux. Following these steps to get miniupnpd on your Ubuntu 22.04.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install miniupnpd Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt-get -y install miniupnpd

Install miniupnpd 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 miniupnpd by following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install miniupnpd Ubuntu by executing this command in the terminal.

sudo aptitude install miniupnpd

Uninstall miniupnpd 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.

This command can be used to uninstall miniupnpd from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove miniupnpd

If you want to uninstall miniupnpd and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge miniupnpd

Summary

In this guide, I showed you ways to install miniupnpd on Ubuntu 22.04 and ways to uninstall miniupnpd too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.