How To Install curlftpfs on Ubuntu 20.04

In this tutorial we learn how to install curlftpfs on Ubuntu 20.04. curlftpfs is filesystem to access FTP hosts based on FUSE and cURL

Introduction

In this tutorial we learn how to install curlftpfs on Ubuntu 20.04.

What is curlftpfs

curlftpfs is:

CurlFtpFS is a tool to mount FTP hosts as local directories. It connects to a FTP server and maps its directory structure to the local filesystem.

Based on FUSE (filesystem in userspace) and the cURL library, CurlFtpFS has some features that distinguish it over other FTP filesystems:

  • support for SSLv3 and TLSv1
  • connecting through tunneling HTTP proxies
  • automatic reconnection if the server times out
  • conversion of absolute symlinks to point back into the FTP filesystem

There are three methods to install curlftpfs on Ubuntu 20.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 curlftpfs Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install curlftpfs

Install curlftpfs Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install curlftpfs

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

sudo aptitude -y install curlftpfs

How To Uninstall curlftpfs on Ubuntu 20.04

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

sudo apt-get remove curlftpfs

Uninstall curlftpfs And Its Dependencies

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

sudo apt-get -y autoremove curlftpfs

Remove curlftpfs Configurations and Data

To remove curlftpfs configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge curlftpfs

Remove curlftpfs configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge curlftpfs

References

Summary

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