close
» » Snap (Snappy) - useful package manager

Snap (Snappy) - useful package manager

Other
Snap (Snappy) - useful package manager
In this article we'll talk about how to search, install, update, and delete Snap packages in Linux Mint. I have long wanted to write about Snap pakage. What is a Snap pack?
If to speak simply, it is a container, inside is the app and its dependencies.
Why need Snap packs for software installation, if there are already deb packages? Deb packages are inextricably linked and indistinguishable from the system. That is, when we installed the deb package, it is assumed that all dependencies we download from the connected repositories system. In addition, the distribution of Snap packets is intended to standardize and to help developers to release their apps on different systems without worrying about dependencies.
Take for example the number of versions of Ubuntu or Mint, there are LTS and intermediate versions. For many developers, it is problematic to release new builds for all versions. But if we get a zoo of different "Linux" under which to collect and don't want.
In addition, add support for installing Snap packages in the distribution package is not difficult, which in any case does not replace other package managers, but rather complements them. For example, here is a list of distros that support installing apps using Snap packages:
Snap (Snappy) - useful package manager
Official documentation in English is available at the following address:
https://docs.snapcraft.io/core/
Installation into Linux Mint:
sudo apt install snapd -y
Search Snap packages
Find for packages using command in the terminal:
find snap <searched phrase>
For example, you can search by partial name of a program, try to find a player Clementine:
snap find clemen
Snap (Snappy) - useful package manager
But if you want to search for a few words to describe the package, it is necessary to enclose the phrase in quotation marks:
snap find "music player"
Snap (Snappy) - useful package manager
Installation of Snap packages
As you may have guessed, the command of Snap installation package as follows:
sudo snap install <package_name>
For example, we found using the find command the list of packages, look at the column Name is the package name. Let's install program Clementine:
sudo snap install clementine
Installed program icon can be found among other installed programs. But I sometimes restart required working environment.
The list of installed Snap packages
To display a list of all installed packages in a Snap, enter in terminal the following command:
snap list
Snap (Snappy) - useful package manager
Update Snap packages
sudo snap refresh
To update a single package, enter the following command:
sudo snap refresh <package_name>
Snap (Snappy) - useful package manager
Disable and Enable Snap packages
There are apps which work in background as a system service. For example, some web application. And to turn it off, you can use the following command:
sudo snap disable <package_name>
In this case, the app shortcut disappears from app list and it will not be updated.
At any time you can re-enable the Snap app by running the following command in the terminal:
sudo snap enable <package_name>
Remove Snap packages
In General, to remove the Snap package the command looks like the following:
sudo snap remove clementine
Hope this article helped you to understand this is not difficult package manager.
May the Force be with you,
Good Luck!!!
snapcraft.io

Print version

Edited by: Shekin - 16-10-2017, 14:56

Add comments

  • Local comments
  • Facebook comments
Drumsal
Drumsal 10 November 2017 09:07
Unfortunately snap depends on kernel >=4, while I need kernel 3.xx to have hdmi audio in my legacy ATI video card. So our paths can't cross!
  • 0
  • bowtiesmilelaughingblushsmileyrelaxedsmirk
    heart_eyeskissing_heartkissing_closed_eyesflushedrelievedsatisfiedgrin
    winkstuck_out_tongue_winking_eyestuck_out_tongue_closed_eyesgrinningkissingstuck_out_tonguesleeping
    worriedfrowninganguishedopen_mouthgrimacingconfusedhushed
    expressionlessunamusedsweat_smilesweatdisappointed_relievedwearypensive
    disappointedconfoundedfearfulcold_sweatperseverecrysob
    joyastonishedscreamtired_faceangryragetriumph
    sleepyyummasksunglassesdizzy_faceimpsmiling_imp
    neutral_faceno_mouthinnocent