How To Install fpart on Debian 11

In this tutorial we learn how to install fpart on Debian 11. fpart is sort file trees and pack them into bags

Introduction

In this tutorial we learn how to install fpart on Debian 11.

What is fpart

fpart is:

Fpart is a tool that helps you sort file trees and pack them into bags (called “partitions”). It is developed in C and available under the BSD license.

It splits a list of directories and file trees into a certain number of partitions, trying to produce partitions with the same size and number of files. It can also produce partitions with a given number of files or a limited size. Once generated, partitions are either printed as file lists to stdout (default) or to files. Those lists can then be used by third party programs.

Fpart also includes a live mode, which allows it to crawl very large filesystems and produce partitions in live. Hooks are available to act on those partitions (e.g. immediately start a transfer using rsync(1)) without having to wait for the filesystem traversal job to be finished. Used this way, fpart can be seen as a powerful data migration tool.

There are three methods to install fpart on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install fpart Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install fpart

Install fpart Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install fpart

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

sudo aptitude -y install fpart

How To Uninstall fpart on Debian 11

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

sudo apt-get remove fpart

Uninstall fpart And Its Dependencies

To uninstall fpart and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove fpart

Remove fpart Configurations and Data

To remove fpart configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge fpart

Remove fpart configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge fpart

Dependencies

fpart have the following dependencies:

References

Summary

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