How to Uninstall and Install miniupnpc on Ubuntu 22.04

Updated: September 20, 2022

The UPnP protocol is supported by most home adsl/cable routers and Microsoft Windows 2K/XP. The aim of the MiniUPnP project is to bring a free software solution to support the “Internet Gateway Device” part of the protocol. The MediaServer/MediaRenderer UPnP protocol is also becoming very popular. In this guide, I will show you ways to install miniupnpc Ubuntu 22.04.

Requirements

  • Operating system: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Verify that you can execute the sudo commands line.

Prerequisites to install miniupnpc on Ubuntu 22.04

Install miniupnpc Ubuntu 22.04

miniupnpc 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 that you think is easy and you can follow.

Install miniupnpc using APT

This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install miniupnpc on your Ubuntu 22.04.

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

sudo apt-get -y update

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

sudo apt install miniupnpc

Install miniupnpc using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already done so, run this command to install it.

sudo apt-get install aptitude

Then, you can now install miniupnpc, just following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing this Linux command:

sudo apt -y update

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

sudo aptitude -y install miniupnpc

Uninstall miniupnpc on Ubuntu 22.04

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

You can uninstall miniupnpc Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove miniupnpc

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

sudo apt autoremove --purge miniupnpc

Ending

In this guide, I showed you ways to install miniupnpc on Ubuntu 22.04 and some ways to uninstall miniupnpc too. Please contact me if you require any assistance. I’d be delighted to respond.