How To Install telegram-cli on Kali Linux

In this tutorial we learn how to install telegram-cli on Kali Linux. telegram-cli is Command-line interface for Telegram messenger

Introduction

In this tutorial we learn how to install telegram-cli on Kali Linux.

What is telegram-cli

telegram-cli is:

Telegram messenger is a cloud-based instant messaging designed for smart phones and similar to Whatsapp but more flexible, and powerful. You can send messages, photos, videos and documents to people who are in your phone contacts (and have Telegram). Telegram also supports secret chats whose provide a private (encrypted) way of communication.

This package contains a command-line based client for Telegram with the following features:

  • Colored terminal messages.
  • Message management: history, stats, etc.
  • Group chat: create and manage groups.
  • Secret chat: secured and encrypted conversations.
  • Contact management: add/edit/remove contacts.
  • Multimedia support: send/load photos and videos.

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

Install telegram-cli Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install telegram-cli

Install telegram-cli Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install telegram-cli

Install telegram-cli Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install telegram-cli using aptitude by running the following command:

sudo aptitude -y install telegram-cli

How To Uninstall telegram-cli on Kali Linux

To uninstall only the telegram-cli package we can use the following command:

sudo apt-get remove telegram-cli

Uninstall telegram-cli And Its Dependencies

To uninstall telegram-cli and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove telegram-cli

Remove telegram-cli Configurations and Data

To remove telegram-cli configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge telegram-cli

Remove telegram-cli configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge telegram-cli

Dependencies

telegram-cli have the following dependencies:

References

Summary

In this tutorial we learn how to install telegram-cli package on Kali Linux using different package management tools: apt, apt-get and aptitude.