Snap is a package manager for Linux-based distributions, and snaps refer to the application packages that are available for IoT, cloud, and desktop. Snaps are multi-platform, easy to install, secure, and dependency-free applications. One of the biggest advantages of snap applications is that they update automatically.

On Linux Mint 20, the snap support is disabled by default. There could be a situation that you are interested in installing any particular application, and the application version is only available from the snap application manager. In this situation, you will require to enable and install the snap-on Linux Mint 20.

Enabling snap application support in Linux Mint 20

Initially, if you try to install the snap-in Linux Mint 20, you will get the error.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/e1.png" data-lazy- height="241" src="data:image/svg xml,” width=”809″>

To enable snap on Linux Mint 20, we need to delete the /etc/apt/preferences.d/nosnap.pref file.

Fire up the terminal and remove the nosnap.pref file with the command:

$ sudo rm /etc/apt/preferences.d/nosnap.pref

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/e2.png" data-lazy- height="97" src="data:image/svg xml,” width=”810″>

Once the nosnap.pref file is removed, update the apt cache using the command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/e3.png" data-lazy- height="221" src="data:image/svg xml,” width=”809″>

Next, we are ready to install the snapd with the command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/e4.png" data-lazy- height="506" src="data:image/svg xml,” width=”812″>

Once the snap is successfully installed, verify the installation and check the installed version with the command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/e5.png" data-lazy- height="166" src="data:image/svg xml,” width=”804″>

The output shows that snap 2.48 is installed.

Installing the snap packages in Linux Mint 20

Now, we have enabled and installed the snap-in Linux Mint; therefore, we can install any application on Linux Mint 20 which is available from the snap application manager as follows:

$ sudo snap install <application-name>

Let’s install the popular VLC media player snap application on Linux Mint:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/e6.png" data-lazy- height="124" src="data:image/svg xml,” width=”800″>

Remove the snapd from Linux Mint 20

At any point, if you wish to remove the snapd application manager from your Linux Mint 20 system, type the below-given command to do so:

$ sudo apt remove –autoremove snapd

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/e7.png" data-lazy- height="251" src="data:image/svg xml,” width=”804″>

Press ‘y’ to continue removing the snap application manager.

Conclusion

Snap comes disabled on Linux Mint 20 by default. Therefore, we need to enable and install the snap manually on Linux Mint 20. This post explains the recommended method for enabling and installing snap on Linux Mint 20.

About the author

<img alt="Kamran Sattar Awaisi" data-lazy-src="https://kirelos.com/wp-content/uploads/2021/02/echo/52E439DD556343299E3D211D5E577D28-150×150.jpg60396d718d4de.jpg" height="112" src="data:image/svg xml,” width=”112″>

Kamran Sattar Awaisi

I am a software engineer and a research scholar. I like to write article and make tutorial on various IT topics including Python, Cloud Computing, Fog Computing and Deep Learning. I love to use Linux based operating systems.