How To Install onionshare-cli on Debian 12

Learn how to install onionshare-cli on Debian 12 with this tutorial. onionshare-cli is Share a file over Tor Hidden Services anonymously and securely - cli

Introduction

In this tutorial we learn how to install onionshare-cli on Debian 12.

What is onionshare-cli

onionshare-cli 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.

This package is the Commandline interface of Onionshare.

There are three methods to install onionshare-cli on Debian 12. 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-cli 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-cli using apt-get by running the following command:

sudo apt-get -y install onionshare-cli

Install onionshare-cli Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install onionshare-cli

Install onionshare-cli 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install onionshare-cli

How To Uninstall onionshare-cli on Debian 12

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

sudo apt-get remove onionshare-cli

Uninstall onionshare-cli And Its Dependencies

To uninstall onionshare-cli and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove onionshare-cli

Remove onionshare-cli Configurations and Data

To remove onionshare-cli configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge onionshare-cli

Remove onionshare-cli configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge onionshare-cli

Dependencies

onionshare-cli have the following dependencies:

References

Summary

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