{"id":10863,"date":"2021-10-05T08:35:33","date_gmt":"2021-10-05T08:35:33","guid":{"rendered":"https:\/\/linuxways.net\/?p=10863"},"modified":"2021-10-05T08:35:33","modified_gmt":"2021-10-05T08:35:33","slug":"how-to-enable-snap-on-rocky-linux-almalinux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/red-hat\/how-to-enable-snap-on-rocky-linux-almalinux\/","title":{"rendered":"How to Enable Snap on Rocky Linux \/ AlmaLinux"},"content":{"rendered":"<p>Sometimes, installing software applications in Linux can be a frustrating experience. You might run into missing libraries or dependencies when using the traditional package managers such as APT or DNF. This would then force you to search for the missing library or dependency only to find that it also depends on other dependencies. And this is where snap comes in.<\/p>\n<p>Developed by Canonical and initially released in 2014, Snap is a software packaging system for the Linux operating systems. It makes use of snaps which are containerized packages that encapsulate an application alongside all its libraries, dependencies, configuration files, and other requirements needed for the software to run. Snaps address the issue of missing libraries and dependencies during software installation since all requirements are bundled together. snaps are also universal and distribution agnostic. You can install a snap package on any Linux flavor provided that snap is installed and enabled.<\/p>\n<p>You can search through a wide selection of thousands of snaps hosted on the <a href=\"https:\/\/snapcraft.io\/store\">snap store.<\/a> In this instructional guide, we demonstrate how to install and enable snap on Rocky Linux \/ AlmaLinux.<\/p>\n<h2><strong> Step 1: Install EPEL repository<\/strong><\/h2>\n<p>We will start off by installing the EPEL repository. To do this, execute the command:<\/p>\n<pre><strong>$ sudo dnf install epel-release<\/strong><\/pre>\n<p>EPEL provides a host of quality addon packages of Enterprise Linux which are essential in the installation of other packages.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"841\" height=\"340\" class=\"wp-image-10864\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-95.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-95.png 841w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-95-300x121.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-95-768x310.png 768w\" sizes=\"auto, (max-width: 841px) 100vw, 841px\" \/><\/p>\n<h2><strong> Step 2: Install snapd on Rocky Linux \/ AlmaLinux<\/strong><\/h2>\n<p>Once EPEL is installed, the next step is to install the snapd daemon which, in effect, installs Snap. To achieve this, run the command:<\/p>\n<pre><strong>$ sudo dnf install snapd<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"841\" height=\"427\" class=\"wp-image-10865\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-96.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-96.png 841w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-96-300x152.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-96-768x390.png 768w\" sizes=\"auto, (max-width: 841px) 100vw, 841px\" \/><\/p>\n<p>This installs snapd and other additional packages as shown.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"847\" height=\"238\" class=\"wp-image-10866\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-97.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-97.png 847w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-97-300x84.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-97-768x216.png 768w\" sizes=\"auto, (max-width: 847px) 100vw, 847px\" \/><\/strong><\/p>\n<p>Once installed, start the snapd daemon:<\/p>\n<pre><strong>$ sudo systemctl start snapd.socket<\/strong><\/pre>\n<p>And enable the service on boot time.<\/p>\n<pre><strong>$ sudo systemctl enable snapd.socket<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"846\" height=\"162\" class=\"wp-image-10867\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-98.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-98.png 846w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-98-300x57.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-98-768x147.png 768w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/><\/strong><\/p>\n<p>To verify that the snapd daemon is running, execute:<\/p>\n<pre><strong>$ sudo systemctl status snapd.socket<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"823\" height=\"185\" class=\"wp-image-10868\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-99.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-99.png 823w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-99-300x67.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-99-768x173.png 768w\" sizes=\"auto, (max-width: 823px) 100vw, 823px\" \/><\/strong><\/p>\n<p>You can enable classic snap support by creating a symbolic link from <strong>\/var\/lib\/snapd\/snap<\/strong> to <strong>\/snap <\/strong>as follows.<\/p>\n<pre><strong>$ sudo ln -s \/var\/lib\/snapd\/snap \/snap<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"686\" height=\"77\" class=\"wp-image-10869\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-100.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-100.png 686w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-100-300x34.png 300w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/strong><\/p>\n<p>To check the version of snap run the command:<\/p>\n<pre><strong>$ snap --version<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"229\" class=\"wp-image-10870\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-101.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-101.png 842w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-101-300x82.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-101-768x209.png 768w\" sizes=\"auto, (max-width: 842px) 100vw, 842px\" \/><\/strong><\/p>\n<h2><strong> Step 3: Using snap to manage snap packages<\/strong><\/h2>\n<p>You can run the \u2018snap\u2019 command to get information about snap, its usage, and commonly used commands:<\/p>\n<pre><strong>$ snap<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"779\" height=\"449\" class=\"wp-image-10871\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-102.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-102.png 779w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-102-300x173.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-102-768x443.png 768w\" sizes=\"auto, (max-width: 779px) 100vw, 779px\" \/><\/strong><\/p>\n<p>For example, to find out the availability of an application as a snap package, run the <strong>snap find <\/strong>command followed by the name of the application. For example, to find out if Skype is available, run:<\/p>\n<pre><strong>$ sudo snap find skype<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1231\" height=\"202\" class=\"wp-image-10872\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-103.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-103.png 1231w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-103-300x49.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-103-1024x168.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-103-768x126.png 768w\" sizes=\"auto, (max-width: 1231px) 100vw, 1231px\" \/><\/p>\n<p>To get additional information about the Skype application such as the Publisher, snap store URL licensing and the description about the application, run the command.<\/p>\n<pre><strong>$ sudo snap info skype<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"388\" class=\"wp-image-10873\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-104.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-104.png 781w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-104-300x149.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-104-768x382.png 768w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/strong><\/p>\n<p>To install the Skype, execute the command:<\/p>\n<pre><strong>$ sudo snap install skype<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"845\" height=\"167\" class=\"wp-image-10874\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-105.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-105.png 845w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-105-300x59.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-105-768x152.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/strong><\/p>\n<p>To remove the Skype application run the command.<\/p>\n<pre><strong>$ sudo snap remove skype<\/strong><\/pre>\n<p>Those are just but a few snap commands that you can get started out with.<\/p>\n<p><strong>NOTE:<\/strong><\/p>\n<p>Snaps are quite huge in size and take up a larger disk space since the application comes bundled with dependencies, libraries, config files, and all that is required to make the installation seamless and successful. Therefore, it\u2019s prudent to have a good internet connection before installation and ample disk space on your drive.<\/p>\n<p>That\u2019s it. Hope you liked this guide. We believe you can now install and enable snap of your Rocky Linux system.<\/p>","protected":false},"excerpt":{"rendered":"<p>Sometimes, installing software applications in Linux can be a frustrating experience. You might run into missing libraries or dependencies when using the traditional package managers such as APT&hellip;<\/p>","protected":false},"author":1,"featured_media":10941,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[165],"tags":[444,411,598],"class_list":["post-10863","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-red-hat","tag-almalinux","tag-rocky-linux","tag-snap"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/10863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=10863"}],"version-history":[{"count":1,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/10863\/revisions"}],"predecessor-version":[{"id":10940,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/10863\/revisions\/10940"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/10941"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=10863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=10863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=10863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}