Snap ��� linux mint

How to use Snap in Linux Mint

There are different ways to install software in Linux. The most convenient way is by searching for software in the distribution dedicated software manager and install it from there. Then it is quite certain that you won’t have for example dependency issues. But on the other hand the available software in for example the software manager of Long Term Support based distributions like Linux Mint and Elementary OS, will age over time, until a real new LTS version is released with a more up to date software offering. But sometimes you want to install software that is indeed newer or that is not even available via the Linux software manager. And then you can use for example .deb files to be downloaded directly from the website of an application developer, or you can use more modern solutions like the universal package formats AppImage, Snap and Flatpak. In a future blog post I will go deeper in the different ways of installing software in Linux Mint, but in this post I just want to describe how to use Snap in Linux Mint.

What is Snap?

Snap is a software package format created by Canonical, the company behind the well known Ubuntu operating system. Software that is packaged as a Snap has bundled its dependent components and libraries, so the software works in theory across most Linux distributions, because it contains everything the application needs to work on its own. So a developer that offers his or hers application via Snap doesn’t need to worry about different installers for Debian, Ubuntu, Fedora, Arch, etc. Another plus is that Snap packaged applications can receive their updates automatically when it is available. So your software is always up to date. And there is even a dedicated software store available where all Snap based applications come together. Basically solutions like Snap makes lives easier for both the developer as well as the user.

Snap packages in Linux Mint

Linux Mint does not support Snap out of the box. The team behind Linux Mint choose for an equivalent alternative named Flatpak.

Snap and Flatpak both function in similar way, but Snap is more oriented on Ubuntu-based systems and Flatpak on Fedora-based systems. But both can be installed and used on all kind of distributions. Flatpak support is built into Linux Mint 18.3 and higher, so no special setup is required. But what if an application is not available as Flatpak but only as Snap? Than we need to find a way to install Snap packages on Linux Mint. For this we need “snapd”, which supports installing, configuring, refreshing and removing snap packages.

Читайте также:  Просмотр pdf linux ubuntu

How to install Snap on Linux Mint

Snap is available for Linux Mint 18.2 (Sonya), Linux Mint 18.3 (Sylvia), Linux Mint 19 (Tara) and Linux Mint 19.1 (Tessa). And of course all upcoming releases will be supported as well.

The most easy way to install snapd is from the Linux Software Manager.

1) Open your applications menu and search for “Software Manager”.
2) Start “Software Manager”.
3) In the “Software Manager” search for “snapd”.

4) Open “snapd” by clicking on it.

5) Click on Install.

You can also install snapd from the command line:

1) Open the command line tool via Ctrl + Alt + T.
2) Type the command “ sudo apt-get update ” and give enter.
3) Type the command “ sudo apt-get install snapd ” and give enter.

How to install Snap based applications

Now that snapd has been installed you can easily install Snap based applications. Canonical, the organization behind Ubuntu, created a dedicated Snap application store called Snapcraft, which offers thousands of Snap based packages.

1) Go to https://snapcraft.io
2) Here you can search for applications in different categories, like Developer, Games, Video and Music.
3) Click on the application you want to install.
4) In the screen with all the details about this specific application click on Install.

What you will see now is some information on how to install the Snap package.

Unlike Flatpak, which is integrated in the Linux Mint Software Manager, you won’t find Snaps in the Linux Mint Software Manager. So we need to use the above proposed terminal line command to install Snap based packages in Linux Mint. In the example above it says that you can install the Snap of Spotify by using the command “ sudo snap install spotify “. And if you want to install for example Deepin Music you type “ sudo snap install deepin-music ” in the terminal

After you typed the specific command in the terminal (Open with Ctrl + Alt + T), an installation process will be visible and after a short while the application has been installed. Now you can look it up via the Application menu and search for the installed application (Possibly a restart is required to make the app visible).

It is not required to search for Snaps via the store https://snapcraft.io (although personally I like the visual way of browsing for apps). You can search for applications via the command line as well.

Type snap find appname to search for a specific application (if you already know the name” or snap find “search keywords” for a specific function based on multiple keywords. This will output a list of packages that are installable, related to your snap search.

Читайте также:  Просмотр запущенных процессов linux

For example if you want to find all music related Snaps type:

snap find “music”

This will give you an overview of all music related Snaps.

If you want to list all available Snaps in the Snapcraft store you can just use the command:

Now to install a specific Snap copy the name as presented in the Name column and paste it after the following command:

sudo snap install

So if you want to install Clementine you type sudo snap install clementine .

How to updates Snaps

You can update your Snap based applications once in a while by using the “refresh” command. Type “sudo snap refresh” and all the Snap based applications on your system will be updated to the latest versions.

How to remove Snaps

Snaps can easily be removed from Linux Mint as well via the following command:

sudo snap remove

sudo snap remove deepin-music

Final words

In Linux there are always different ways to achieve the same and everybody has its own preferences. Some people prefer to only use the Linux Mint Software Manager and only stick to what is available there. And some are more adventures and want to try other apps as well or want to use the newest bleeding edge versions. Then Snap is one of your options. I hope this post was helpful in your Linux journey.

Источник

Install Snap Store
on Linux Mint

Snap Store

  • Canonical Publisher Verified account
  • Personalisation
  • Utilities

Snap Store is a graphical desktop application for discovering, installing and managing snaps on Linux.

Snap Store showcases featured and popular applications with useful descriptions, ratings, reviews and screenshots.

Applications can be found either through browsing categories or by searching.

Snap Store can also be used to switch channels, view and alter snap permissions and view and submit reviews and ratings.

Snap Store is based on GNOME Software, optimized for the Snap experience.

Источник

Install snapd
on Linux Mint

snapd

  • Canonical Publisher Verified account

Daemon and tooling that enable snap packages

Install, configure, refresh and remove snap packages. Snaps are ‘universal’ packages that work across many different Linux systems, enabling secure distribution of the latest apps and utilities for cloud, servers, desktops and the internet of things.

Start with ‘snap list’ to see installed snaps.

Details for snapd

Enable snaps on Linux Mint and install snapd

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.

Enable snapd

Snap is available for Linux Mint 18.2 (Sonya), Linux Mint 18.3 (Sylvia), Linux Mint 19 (Tara), Linux Mint 19.1 (Tessa) and the latest release, Linux Mint 20 (Ulyana). You can find out which version of Linux Mint you’re running by opening System info from the Preferences menu.

On Linux Mint 20, /etc/apt/preferences.d/nosnap.pref needs to be removed before Snap can be installed. This can be accomplished from the command line:

Читайте также:  Отредактировать grub для windows

To install snap from the Software Manager application, search for snapd and click Install. Alternatively, snapd can be installed from the command line:

Either restart your machine, or log out and in again, to complete the installation.

Install snapd

To install snapd, simply use the following command:

Источник

How to install SNAP on Linux Mint 20

The snap universal package management has been removed by the Linux Mint 20 developers. Yes, out of the box, you can’t use the SNAP command as we do in Ubuntu. The reason behind this was, the snapcraft packages are controlled by the Canonical team, thus if someone has complete control over the distribution packages and how they would distribute, it ultimately leads to against the ideology of open source and would work like any property software vendor. Thus, the Linux Mint team decided not to enable and allow the user to install and use SNAP by default.

However, we can install most of the available Debian packages using the APT package manager, yet, if any of us still want to use the SNAP on Linux Mint, we can do that because being on the open-source OS, we are not bounded to any particular thing and it’s our choice what to use and what to not. Therefore, if any one of you is interested then here is the tutorial on it.

Install Snap package manager on Linux Mint

On Linux Mint 18.2 (Sonya), 18.3 (Sylvia), 19 (Tara), and 19.1 (Tessa), we don’t have to do anything, the snap will there out of the box, and if not then using the simple apt command given in this article will let you set up it. However, in Linux Mint 20 (Ulyana), first, we need to remove a file from the APT directory which is blocking the users to download SNAP packages. Follow the below steps.

Open command terminal

Go to Taskbar of the Linux Mint 20 and click on the Terminal icon or simply use the keyboard shortcut CTRL+Alt+T to run the command terminal.

Remove nosnap.pref file

The first thing we need to do is deleting of nosnap.pref file, present under /etc/apt/preferences.d/ path on Linux Mint 20. For this the command will be:

Run system update command

To flush the APT cache and rebuild it again, run the system update command.

Install snap on Linux mint 20

Finally, run the command to install the SNAP package manager on Linux Mint 20 using the command line.

Start & Enable the Snap Daemon

Make the service autostart with the system boot.

Check the Service status

To confirm that SNAP service is working and running fine without any errors use this command:

Install some package

To confirm it’s working without any glitches, let’s install some packages, for example, the VLC player.

In this way, we can enable and use this universal package manager on Linux Mint 20.

Источник

Оцените статью