How To Install mono-upnp-bin on Ubuntu 18.04

In this tutorial we learn how to install mono-upnp-bin on Ubuntu 18.04. mono-upnp-bin is client/server libraries for UPnP – executables

Introduction

In this tutorial we learn how to install mono-upnp-bin on Ubuntu 18.04.

What is mono-upnp-bin

mono-upnp-bin is:

Mono.Upnp is a set of client/server libraries for the Universal Plug ’n Play specification, which can be found at http://www.upnp.org.

Mono.Upnp includes the following projects:

  • Mono.Ssdp: An implementation of the Simple Discovery Protocol.
  • Mono.Upnp: An implementation of the UPnP Device Architecture 1.1, Sections 2-6.
  • Mono.Upnp.GtkClient: An executable Gtk+ user interface for inspecting UPnP devices and services on the network.
  • Mono.Upnp.Dcp.MediaServer1: An implementation of the UPnP Audio/Video MediaServer1 Device Control Protocol.
  • Mono.Upnp.Dcp.MediaServer1.FileSystem: A MediaServer1 implementation which serves media from the filesystem.
  • Mono.Upnp.Dcp.MediaServer1.FileSystem.ConsoleServer: An executable console program which serves media from the filesystem.
  • Mono.Upnp.Dcp.MSMediaServerRegistrar1: An implementation of the Microsoft MSMediaServerRegistrar1 Device Control Protocol.

This package contains a sample Gtk+ user interface for inspecting UPnP devices and services on the network, as well as a sample media server.

There are three methods to install mono-upnp-bin on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install mono-upnp-bin Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install mono-upnp-bin using apt-get by running the following command:

sudo apt-get -y install mono-upnp-bin

Install mono-upnp-bin Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install mono-upnp-bin using apt by running the following command:

sudo apt -y install mono-upnp-bin

Install mono-upnp-bin Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install mono-upnp-bin using aptitude by running the following command:

sudo aptitude -y install mono-upnp-bin

How To Uninstall mono-upnp-bin on Ubuntu 18.04

To uninstall only the mono-upnp-bin package we can use the following command:

sudo apt-get remove mono-upnp-bin

Uninstall mono-upnp-bin And Its Dependencies

To uninstall mono-upnp-bin and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove mono-upnp-bin

Remove mono-upnp-bin Configurations and Data

To remove mono-upnp-bin configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge mono-upnp-bin

Remove mono-upnp-bin configuration, data, and all of its dependencies

We can use the following command to remove mono-upnp-bin configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge mono-upnp-bin

References

Summary

In this tutorial we learn how to install mono-upnp-bin package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.