Ways to Uninstall and Install telegram-cli Ubuntu 22.04

Updated: September 22, 2022

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. In this tutorial, I will show you ways to install telegram-cli Ubuntu 22.04.

Requirements

  • Operating system: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install telegram-cli on Ubuntu 22.04

Install telegram-cli Ubuntu 22.04

telegram-cli is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install telegram-cli using APT

This is a popular method for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get telegram-cli on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. You can now install telegram-cli Ubuntu by executing this command in the terminal.

sudo apt-get install telegram-cli

Install telegram-cli using Aptitude

If you haven’t already installed Aptitude on Ubuntu, run this command to do so.

sudo apt-get install aptitude

Then, you can now install telegram-cli by following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install telegram-cli Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude install telegram-cli

Uninstall telegram-cli on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a telegram-cli, can be easily uninstalled by anyone.

If you installed telegram-cli using APT or Aptitude, you could uninstall telegram-cli on Ubuntu by executing this command

sudo apt remove --auto-remove telegram-cli

To uninstall telegram-cli and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge telegram-cli

Conclusion

In this guide, I showed you ways to install telegram-cli on Ubuntu 22.04 and ways to uninstall telegram-cli too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.