How To Install ruby-ntlm on Ubuntu 18.04

In this tutorial we learn how to install ruby-ntlm on Ubuntu 18.04. ruby-ntlm is NTLM authentication client for Ruby

Introduction

In this tutorial we learn how to install ruby-ntlm on Ubuntu 18.04.

What is ruby-ntlm

ruby-ntlm is:

NTLM (NT LAN Manager) is an authentication protocol used in various Microsoft network protocol implementations. It employs a challenge-response mechanism for authentication, in which clients are able to prove their identities without sending a password to the server. This Ruby library provides message creator and parser for the NTLM authentication. It supports NTLM v1 only.

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

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

sudo apt-get update

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

sudo apt-get -y install ruby-ntlm

Install ruby-ntlm Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ruby-ntlm

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

sudo aptitude -y install ruby-ntlm

How To Uninstall ruby-ntlm on Ubuntu 18.04

To uninstall only the ruby-ntlm package we can use the following command:

sudo apt-get remove ruby-ntlm

Uninstall ruby-ntlm And Its Dependencies

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

sudo apt-get -y autoremove ruby-ntlm

Remove ruby-ntlm Configurations and Data

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

sudo apt-get -y purge ruby-ntlm

Remove ruby-ntlm configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-ntlm

References

Summary

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