How To Install soapysdr-module-uhd on Ubuntu 18.04

In this tutorial we learn how to install soapysdr-module-uhd on Ubuntu 18.04. soapysdr-module-uhd is UHD device support for SoapySDR (default version)

Introduction

In this tutorial we learn how to install soapysdr-module-uhd on Ubuntu 18.04.

What is soapysdr-module-uhd

soapysdr-module-uhd is:

Both SoapySDR and the Universal Hardware Driver by Ettus Research projects provide libraries to access various software defined radio hardware through a common interface.

This SoapySDR hardware support module makes all UHD devices available to applications using SoapySDR. An interface in the other direction is available in the uhd-soapysdr package.

This is an empty dependency package that pulls in the UHD module for the default version of libsoapysdr.

There are three methods to install soapysdr-module-uhd 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 soapysdr-module-uhd Using apt-get

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

sudo apt-get update

After updating apt database, We can install soapysdr-module-uhd using apt-get by running the following command:

sudo apt-get -y install soapysdr-module-uhd

Install soapysdr-module-uhd Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install soapysdr-module-uhd using apt by running the following command:

sudo apt -y install soapysdr-module-uhd

Install soapysdr-module-uhd 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 soapysdr-module-uhd using aptitude by running the following command:

sudo aptitude -y install soapysdr-module-uhd

How To Uninstall soapysdr-module-uhd on Ubuntu 18.04

To uninstall only the soapysdr-module-uhd package we can use the following command:

sudo apt-get remove soapysdr-module-uhd

Uninstall soapysdr-module-uhd And Its Dependencies

To uninstall soapysdr-module-uhd and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove soapysdr-module-uhd

Remove soapysdr-module-uhd Configurations and Data

To remove soapysdr-module-uhd configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge soapysdr-module-uhd

Remove soapysdr-module-uhd configuration, data, and all of its dependencies

We can use the following command to remove soapysdr-module-uhd configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge soapysdr-module-uhd

References

Summary

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