How To Install sendfile on Ubuntu 18.04

In this tutorial we learn how to install sendfile on Ubuntu 18.04. sendfile is Simple Asynchronous File Transfer

Introduction

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

What is sendfile

sendfile is:

Sendfile is an asynchronous file transfer service for the Internet, like the sendfile facility in Bitnet: Any user A can send files to another user B without B being active in any way.

The existing standard file transfer (ftp) is a synchronous service: The user must have access to an account on the sending and on the receiving site, too.

Sendfile for Unix, which is an implementation of the SAFT protocol (Simple Asynchronous File Transfer) now offers you a true asynchronous file transfer service for the Internet. Virtually any form of file can be sent, including encrypted ones. The SAFT protocol will be submitted as an RFC in the near future.

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

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

sudo apt-get update

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

sudo apt-get -y install sendfile

Install sendfile Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install sendfile

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

sudo aptitude -y install sendfile

How To Uninstall sendfile on Ubuntu 18.04

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

sudo apt-get remove sendfile

Uninstall sendfile And Its Dependencies

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

sudo apt-get -y autoremove sendfile

Remove sendfile Configurations and Data

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

sudo apt-get -y purge sendfile

Remove sendfile configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge sendfile

References

Summary

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