How To Install lua-torch-paths on Debian 9

In this tutorial we learn how to install lua-torch-paths on Debian 9. lua-torch-paths is Filename Manipulation Package for Torch Framework

Introduction

In this tutorial we learn how to install lua-torch-paths on Debian 9.

What is lua-torch-paths

lua-torch-paths is:

This package provides portable functions and variables to manipulate the file system :

  • Manipulating filenames: functions for manipulating filenames ;
  • Directory functions: functions for listing and manipulating directories ;
  • Directory paths: paths to well known directories ;
  • Miscellaneous: uncategorized functions ;

When this package is loaded, it also computes a number of useful variables indicating where the various Torch components are installed.

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

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

sudo apt-get update

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

sudo apt-get -y install lua-torch-paths

Install lua-torch-paths Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install lua-torch-paths using apt by running the following command:

sudo apt -y install lua-torch-paths

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

sudo aptitude -y install lua-torch-paths

How To Uninstall lua-torch-paths on Debian 9

To uninstall only the lua-torch-paths package we can use the following command:

sudo apt-get remove lua-torch-paths

Uninstall lua-torch-paths And Its Dependencies

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

sudo apt-get -y autoremove lua-torch-paths

Remove lua-torch-paths Configurations and Data

To remove lua-torch-paths configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge lua-torch-paths

Remove lua-torch-paths configuration, data, and all of its dependencies

We can use the following command to remove lua-torch-paths configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge lua-torch-paths

Dependencies

lua-torch-paths have the following dependencies:

References

Summary

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