{"id":16147,"date":"2019-01-17T23:51:50","date_gmt":"2019-01-17T22:51:50","guid":{"rendered":"https:\/\/www.digitalking.it\/?p=16147"},"modified":"2025-02-25T15:16:34","modified_gmt":"2025-02-25T14:16:34","slug":"install-apps-in-various-linux-distributions-using-snaps","status":"publish","type":"post","link":"https:\/\/www.digitalking.it\/en\/2019\/01\/17\/install-apps-in-various-linux-distributions-using-snaps\/","title":{"rendered":"Install apps in various Linux distributions using Snaps"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading time:<\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span><div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/bvTqlRo.png\" alt=\"Snaps\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">The basics<\/h3>\n\n\n\n<p>Installing software in a Linux O.S. it&#8217;s equivalent to say install packages.<br \/>To install packages there are various package managers.<br \/>It\u2019s a crucial component of Linux, in that it keeps track of everything installed; downloads packages; ensures all packages are installed in a common location; helps to upgrade packages; resolves dependencies; and keeps users from having to install from source code.<br \/><\/p>\n\n\n\n<!--more-->\n\n\n\n<p><br \/>There are numerous package managers available, each Linux distributions has own system.<br \/>Each package manager works with a different file type.<br \/>A brief summary of main package managers (there are more package managers out there):<\/p>\n\n\n<p>[table tablesorter=&#8221;0&#8243; class=&#8221;table table-border&#8221;]<br \/>\nDistribution,Package manager,File type<br \/>\nDebian\/Ubuntu and derivates,apt,.deb<br \/>\nRed Hat \/ CentOS \/ Fedora,yum,.rpm<br \/>\nSUSE \/ openSUSE,zypper,.rpm<br \/>\nArch Linux,pacman,.pkg<br \/>\n[\/table]<\/p>\n\n\n\n<p>Most package managers have GUI front ends.So you can easily install packages etc&#8230; using the graphic interface instead specific terminal commands.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install packages using Snaps<\/h3>\n\n\n\n<p>Snaps are basically an application compiled together with its dependencies and libraries and universal for all Linux distributions. You can find and install Snaps using the <a href=\"https:\/\/snapcraft.io\/store\" target=\"_blank\" rel=\"noopener\">Snap store<\/a>.<\/p>\n\n\n\n<p>Some advantages using Snaps:<\/p>\n\n\n\n<p>&#8211; universal Linux packages<br \/>&#8211; Snaps contains all the dependencies and libraries needed to run<br \/>&#8211; Automatic Updates<br \/>&#8211; Easier to create and manage for Developers<br \/>&#8211; One snap is common for every environment (desktop, server, cloud)<br \/>&#8211; Different releases availability (eg. beta, stable)<br \/>&#8211; Security: Snaps run in a sandboxed environment, isolated from the rest of your system<\/p>\n\n\n\n<p>In order to use the Snaps first you need to install the <em>Snapd<\/em> daemon.<br \/>If you use Ubuntu 16.04.4 LTS or later, Snapd is already installed.<br \/>For other Linux distributions you need to install Snapd, read the <a href=\"https:\/\/docs.snapcraft.io\/installing-snapd\/6735\" target=\"_blank\" rel=\"noopener\">official doc<\/a> for reference.<br \/>We can verify that snapd is installed by typing this command from the Linux console:<\/p>\n\n\n\n<p><code>$ snap version<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">basic Snap commands<\/h3>\n\n\n\n<p>Find a snap:<\/p>\n\n\n\n<p><code>$ snap find [snap_name]<\/code><\/p>\n\n\n\n<p>Install snaps:<\/p>\n\n\n\n<p><code>$ sudo snap install [snap_name]<\/code><\/p>\n\n\n\n<p>List of installed snaps:<\/p>\n\n\n\n<p><code>$ snap list<\/code><\/p>\n\n\n\n<p>Refresh an installed snap: (snaps are periodically updated, but if you need to update manually you can use the following command)<\/p>\n\n\n\n<p><code>$ sudo snap refresh [snap_name]<\/code><\/p>\n\n\n\n<p>Uninstall a snap:<\/p>\n\n\n\n<p><code>$ sudo snap remove [snap_name]<\/code><\/p>\n\n\n\n<p>Snaps integrate with desktop environments, so a typical graphical snap will place one or more icons in the menu or launcher on any modern distribution.<br \/>For non-graphical applications, or as a preference, snaps can be run from the command line too.<\/p>\n\n\n\n<p><code>$ [snap_name]<\/code><\/p>\n\n\n\n<p>If executing a command directly doesn\u2019t work, try prefixing it with the <em>\/snap\/bin<\/em> path<\/p>\n\n\n\n<p><code>$ \/snap\/bin\/[snap_name]<\/code><\/p>\n\n\n\n<p>or you can use the snap run command:<\/p>\n\n\n\n<p><code>$ snap run [snap_name]<\/code><\/p>\n\n\n\n<p>Snaps are a good alternative to easily install software under Linux instead using the package managers with all benefits described above, in addition there are thousands of snaps available in the Snap Store.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading time:<\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>The basics Installing software in a Linux O.S. it&#8217;s equivalent to say install packages.To install packages there are various package managers.It\u2019s a crucial component of<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advgb_blocks_editor_width":"","advgb_blocks_columns_visual_guide":"","footnotes":""},"categories":[3474],"tags":[],"class_list":["post-16147","post","type-post","status-publish","format-standard","hentry","category-linux-en"],"author_meta":{"display_name":"Simone","author_link":"https:\/\/www.digitalking.it\/en\/author\/admin\/"},"featured_img":null,"coauthors":[],"tax_additional":{"categories":{"linked":["<a href=\"https:\/\/www.digitalking.it\/en\/category\/linux-en\/\" class=\"advgb-post-tax-term\">Linux<\/a>"],"unlinked":["<span class=\"advgb-post-tax-term\">Linux<\/span>"]}},"comment_count":"0","relative_dates":{"created":"Posted 8 years ago","modified":"Updated 2 years ago"},"absolute_dates":{"created":"Posted on January 17, 2019","modified":"Updated on February 25, 2025"},"absolute_dates_time":{"created":"Posted on January 17, 2019 11:51 pm","modified":"Updated on February 25, 2025 3:16 pm"},"featured_img_caption":"","series_order":"","_links":{"self":[{"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/posts\/16147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/comments?post=16147"}],"version-history":[{"count":0,"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/posts\/16147\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/media?parent=16147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/categories?post=16147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.digitalking.it\/en\/wp-json\/wp\/v2\/tags?post=16147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}