How to Install Telegram on Fedora 35

Telegram is a popular free cross-platform, cloud-based instant messaging system. Telegram is famous for providing end-to-end encrypted video calling, VoIP, file sharing, amongst many other features. One of the main attractions of Telegram, it is unique in having no ties or shared interests with the big social media giants such as Facebook or Twitter. The application is also cross-platform, with app versions available for most operating systems for desktops and mobile/tablet devices.

In the following tutorial, you will learn how to install the Telegram client on Fedora 35.

Prerequisites

  • Recommended OS: Fedora Linux 35
  • User account: A user account with sudo or root access.

Update Operating System

Update your Fedora operating system to make sure all existing packages are up to date:

sudo dnf upgrade --refresh -y

The tutorial will be using the sudo command and assuming you have sudo status.

To verify sudo status on your account:

sudo whoami

Example output showing sudo status:

[joshua@fedora ~]$ sudo whoami
root

To set up an existing or new sudo account, visit our tutorial on Adding a User to Sudoers on Fedora.

To use the root account, use the following command with the root password to log in.

su

Install Dependency Required

Before you proceed with the installation, run the following command to install or check that the package dnf-plugins-core is installed on your Fedora desktop.

sudo dnf install dnf-plugins-core -y

By default, this should be installed.

Method 1. Install Telegram with DNF

The first option is to use the RPM fusion third-party repository. This is the recommended way to install Telegram for Fedora users as you are utilizing the DNF package manager. In your terminal, execute the following commands to import the free and non-free repositories.

To enable the Free repository, use:

sudo dnf install \
  https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm

To enable the Nonfree repository:

sudo dnf install \
  https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Next, execute the following dnf install command:

sudo dnf install telegram

Example output:

How to Install Telegram on Fedora 35

Type Y, then press the ENTER KEY to proceed with the installation.

Telegram updates are handled using the standard dnf upgrade –refresh command.

sudo dnf upgrade --refresh

If you no longer wish to have Telegram installed with the DNF method, use the following command to remove the package.

sudo dnf autoremove telegram

This will automatically remove any unused dependencies that were installed originally with Telegram.

Method 2. Install Telegram with Snap (Snapcraft)

The second option is to use the Snap package manager. Fedora users may be familiar with Snap as it is created and maintained by Ubuntu; however, it is not natively installed on your system. However, this can be installed relatively quickly.

To install Snap, use the following command:

sudo dnf install snapd

Example output:

How to Install Telegram on Fedora 35

Type Y, then press the ENTER KEY to proceed with the installation.

Once Snap is installed, it is highly recommended to log out and back in again or restart your service to ensure snap’s paths are updated correctly.

sudo systemctl restart snapd

Next, some packages come in classic, so you need to create a symlink to enable classic snap support.

sudo ln -s /var/lib/snapd/snap /snap

Next, you need to install the “snap core files” for everything to work correctly. Failure to do this may result in issues down the track.

sudo snap install core

Example output:

core 16-2.52.1 from Canonical✓ installed

Next, install the Telegram package using snap:

sudo snap install telegram-desktop

Example output:

telegram-desktop 3.1.11 from Telegram FZ-LLC (telegram.desktop) installed

As above, this informs you the Telegram was successfully installed and the version number.

YOU MUST RESTART YOUR SESSION! 

To view the Telegram Icon, you can log in and out of your session or use the following terminal command.

sudo systemctl restart gdm

Note, if your Telegram icon is not missing, then ignore the above restart command.

Snap packages are more significant in size than traditional repositories through the DNF package manager for several reasons. However, the trade-off is more straightforward maintained packages that are often updated to the latest available version.

For the future, to update along with and any other packages installed by Snap, run the following command:

sudo snap refresh

If you no longer need to have Telegram installed, remove it using the Snap remove command.

sudo snap remove telegram-desktop

Example output:

telegram-desktop removed

Method 3. Install Telegram with Flatpak

The third option is to use the Flatpak package manager. By default, Flatpak is installed with Fedora 35 unless you have removed it. This is another popular option similar to Snap but would be preferred since it comes natively installed.

First, if Flatpak has been removed, re-install it and its dependencies.

sudo dnf install flatpak -y

Next, you need to enable Flatpack for Fedora using the following command in your terminal:

sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Now install Telegram using the following flatpak command:

flatpak install flathub org.telegram.desktop

Example output:

How to Install Telegram on Fedora 35

Type Y, then press the ENTER KEY to proceed with the installation.

ICON MISSING? RESTART YOUR SESSION! 

Sometimes the Telegram Icon can not appear. You can log in and out of your session or use the following terminal command.

sudo systemctl restart gdm

Updates are handled by Flatpack automatically every time you log into your system after around 10 minutes in. However, if you need to update manually, use the following command.

flatpak update

To remove the Flatpack version of Telegram, run the following command:

flatpak uninstall --delete-data org.telegram.desktop

Example output:

How to Install Telegram on Fedora 35

Type Y and then the ENTER KEY to proceed with the removal of Telegram using the Flatpak method.

How to Launch Telegram Client

Now that you have the Telegram client installed, launching can be done in two ways.

In your terminal type:

telegram

If you would like to launch Telegram and use the terminal, send it to the background:

telegram &

Alternatively, Flatpak users will need to launch using the command below from a terminal instance:

flatpak run org.telegram.desktop

However, this isn’t practical, and you would use the following path on your desktop to open with the path: Activities > Show Applications > Telegram. If you cannot find it, use the search function in the Show Applications menu if you have many applications installed.

Example:

How to Install Telegram on Fedora 35

Once you open Telegram, you will see the first default landing screen. From here, you can sign or create an account with either an email or your mobile number.

How to Install Telegram on Fedora 35

Congratulations, you have successfully installed Telegram.

Comments and Conclusion

In the tutorial, you have learned how to add the official Telegram client on your Fedora 35 desktop in three different ways.

Overall, Telegram has more advantages than cons if you are strictly looking for a more private communication client. It is self-owned values privacy-first along with no pesky advertisements of its products or external. Telegram provides a large amount of storage to save or download files, and it provides cloud storage because we can store or save files on the cloud. 



Follow LinuxCapable.com!

Like to get automatic updates? Follow us on one of our social media accounts!