How to install Snap in Linux

Snap is package distribution on Linux. Unlike APT or DNF, which download softwares from the linux distribution’s official repositories as well as third-party repositories, snaps are installed from one central distribution system that is hosted by Canonical.

How Snap is different from APT and DNF

APT and DNF which are package managers for Debian-based and .rpm based Linux distributions have their default sources(the distribution’s repositories from where your softwares are downloaded) maintained by the linux distribution itself while keeping user experience and security in mind and the code is inspected for vulnerabilities and only uploaded to the official repositories after thorough checks. You can even add some third-party repositories and PPAs for APT. Although, if you add some random third-party repositories to your sources then your system may be prone to malicious attacks. For DNF, there are a bunch of third party services like Copr or RPMFusion, to get packages not included in the official repositories.

Snaps on the other hand have only one store that is hosted by Canonical. Snap store is a universal app store meaning it can be used to install apps on many different linux distributions. Snaps update automatically but APT/DNF packages don’t. When you install a snap all it’s dependencies come with it and when you uninstall it then the dependencies with it also get removed. Snaps are containerised, except in cases where they are installed with custom flags, and they cannot affect the host system and does not have access to any resources outside the snap. Snaps are generally slower than the native packages of the linux distribution and might run worse in low-end devices.

How to install snap

Snap are supported in various distributions include Ubuntu, Debian, Fedora, Arch Linux and Linux Mint.

Install a Snap Package

Here we will install the telegram snap package:

sudo snap install telegram-desktop
Setup snap "snapd" (12398) security profiles                                   /    2021-07-16T05:25:30+05:30 INFO Waiting for automatic snapd restart... telegram-desktop 2.8.4-2-gc22d7ffcf from Telegram FZ-LLC (telegram.desktop) installed   

Note: If you get the error sudo: snap: command not found you can solve it by installing apt of snapd.

How to install Snap in Linux

Related Posts

One thought on “How to install Snap in Linux

  1. Back in delhi missing u
    Plis unblock have to talk about something in monster i started again as well

Leave a Reply

Your email address will not be published. Required fields are marked *