How To Install python-txtftp on Ubuntu 18.04

In this tutorial we learn how to install python-txtftp on Ubuntu 18.04. python-txtftp is Twisted-based TFTP implementation

Introduction

In this tutorial we learn how to install python-txtftp on Ubuntu 18.04.

What is python-txtftp

python-txtftp is:

A Twisted-based TFTP implementation that implements:

  • RFC1350 (base TFTP specification) support.
  • Asynchronous backend support.
  • netascii transfer mode.
  • RFC2347 (TFTP Option Extension) support. blksize (RFC2348) and timeout. (partial support for RFC2349) options are supported.
  • An actual TFTP server.
  • Plugin for twistd.

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

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

sudo apt-get update

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

sudo apt-get -y install python-txtftp

Install python-txtftp Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-txtftp

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

sudo aptitude -y install python-txtftp

How To Uninstall python-txtftp on Ubuntu 18.04

To uninstall only the python-txtftp package we can use the following command:

sudo apt-get remove python-txtftp

Uninstall python-txtftp And Its Dependencies

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

sudo apt-get -y autoremove python-txtftp

Remove python-txtftp Configurations and Data

To remove python-txtftp configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-txtftp

Remove python-txtftp configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-txtftp

References

Summary

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