How To Install onionshare on Ubuntu 18.04

In this tutorial we learn how to install onionshare on Ubuntu 18.04. onionshare is Share a file over Tor Hidden Services anonymously and securely

Introduction

In this tutorial we learn how to install onionshare on Ubuntu 18.04.

What is onionshare

onionshare is:

OnionShare lets you securely and anonymously share a file of any size with someone. It works by starting a web server, making it accessible as a Tor hidden service, and generating an unguessable URL to access and download the file. It doesn’t require setting up a server on the Internet somewhere or using a third party filesharing service. You host the file on your own computer and use a Tor hidden service to make it temporarily accessible over the Internet. The other user just needs to use the Tor Browser and to enter the URL to download the file from you.

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

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

sudo apt-get update

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

sudo apt-get -y install onionshare

Install onionshare Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install onionshare using apt by running the following command:

sudo apt -y install onionshare

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

sudo aptitude -y install onionshare

How To Uninstall onionshare on Ubuntu 18.04

To uninstall only the onionshare package we can use the following command:

sudo apt-get remove onionshare

Uninstall onionshare And Its Dependencies

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

sudo apt-get -y autoremove onionshare

Remove onionshare Configurations and Data

To remove onionshare configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge onionshare

Remove onionshare configuration, data, and all of its dependencies

We can use the following command to remove onionshare configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge onionshare

References

Summary

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