How to Uninstall or Install libupnp-java Ubuntu 22.04

Updated: October 29, 2022

Pure java library for interacting with upnp devices on a network. Commonly used for games, p2pool clients, and video services. In this tutorial, I will show you how to install libupnp-java on Ubuntu 22.04.

Prerequisites to install

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install libupnp-java on Ubuntu 22.04

Install libupnp-java Ubuntu 22.04

libupnp-java 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 libupnp-java 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 libupnp-java on your Ubuntu.

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. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install libupnp-java Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt-get -y install libupnp-java

Install libupnp-java 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 -y install aptitude

Then, you can now install libupnp-java, just following these steps:

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 update

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

sudo aptitude install libupnp-java

Uninstall libupnp-java 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.

If you installed libupnp-java using APT or Aptitude, you could uninstall libupnp-java on Ubuntu by running this command

sudo apt remove --auto-remove libupnp-java

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

sudo apt autoremove --purge libupnp-java

Conclusion

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