How To Install mktorrent on Debian 9

In this tutorial we learn how to install mktorrent on Debian 9. mktorrent is simple command line utility to create BitTorrent metainfo files

Introduction

In this tutorial we learn how to install mktorrent on Debian 9.

What is mktorrent

mktorrent is:

mktorrent is a text-based utility to create BitTorrent metainfo files used by trackers and torrent clients. It can create metainfo files for single files or complete directories in a fast way.

It also supports:

  • multiple trackers
  • embedding custom comments into torrent files
  • disallowing DHT and Peer Exchange
  • multi-threaded hashing

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

Install mktorrent Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mktorrent

Install mktorrent Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mktorrent

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

sudo aptitude -y install mktorrent

How To Uninstall mktorrent on Debian 9

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

sudo apt-get remove mktorrent

Uninstall mktorrent And Its Dependencies

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

sudo apt-get -y autoremove mktorrent

Remove mktorrent Configurations and Data

To remove mktorrent configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge mktorrent

Remove mktorrent configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mktorrent

Dependencies

mktorrent have the following dependencies:

References

Summary

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