{"id":110520,"date":"2021-12-15T20:28:01","date_gmt":"2021-12-15T17:28:01","guid":{"rendered":"https:\/\/computingforgeeks.com\/?p=110520"},"modified":"2024-06-26T11:38:48","modified_gmt":"2024-06-26T08:38:48","slug":"install-snapd-and-use-snap-on-kali-linux","status":"publish","type":"post","link":"https:\/\/computingforgeeks.com\/install-snapd-and-use-snap-on-kali-linux\/","title":{"rendered":"Install Snapd and Use snap on Kali Linux"},"content":{"rendered":"\n<p>Traditional package formats refer to those packages built for a specific system and the user has to install the required dependencies for the package. Far apart from traditional package formats, exists <strong>distribution independent package<\/strong> formats whereby applications are bundled with all the required dependencies to install and run an application within a single package. This has helped a lot since these package formats can run on any Linux system that has supported the framework for the package.<\/p>\n\n\n\n<p><strong>Snap<\/strong>, also known as <strong><em>snappy<\/em><\/strong> was developed by Canonical as a distribution independent package format, first released in 2014. Snap was originally developed for Ubuntu systems but with time, it was adopted by other distributions such as CentOS, Fedora, Linux Mint, Gentoo, Arch e.t.c<\/p>\n\n\n\n<p>The main objective of developing snap was to create a single unified format for software packages that can run on a variety of devices. With Snap, one can access <strong>SnapCraft<\/strong> which is an online app store where one can find and install software packages.<\/p>\n\n\n\n<p>By the end of this guide, you should be able to install Snapd and Use snap on Kali Linux<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"1-update-your-system\">1. Update your system<\/h2>\n\n\n\n<p>Before we can commence on Snapd installation, ensure that all the installed Kali Linux packages are updated to their latest stable versions.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n\n\n\n<p>A reboot is highly recommended whenever an upgrade is performed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo reboot<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2-install-snap-on-kalin-linux\">2. Install Snap on Kalin Linux<\/h2>\n\n\n\n<p>Installing Snapd on Kali Linux is a very straightforward process that can be achieved using the single command below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install snapd<\/code><\/pre>\n\n\n\n<p>Sample Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.........\nThe following NEW packages will be installed:\n<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">  snapd\n<\/mark><\/strong>0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 13.5 MB of archives.\nAfter this operation, 57.4 MB of additional disk space will be used.\nGet:1 http:\/\/http.kali.org\/kali kali-rolling\/main amd64 snapd amd64 2.51.7-2+b1 &#91;13.5 MB]\nFetched 13.5 MB in 19s (697 kB\/s)\nSelecting previously unselected package snapd.\n(Reading database ... 310536 files and directories currently installed.)\nPreparing to unpack ...\/snapd_2.51.7-2+b1_amd64.deb ...\nUnpacking snapd (2.51.7-2+b1) ...\nSetting up snapd (2.51.7-2+b1) ...\nsnapd.apparmor.service is a disabled or a static unit not running, not starting it.\nsnapd.recovery-chooser-trigger.service is a disabled or a static unit not running, not starting it.\nsnapd.seeded.service is a disabled or a static unit not running, not starting it.\nsnapd.service is a disabled or a static unit not running, not starting it.\nsnapd.socket is a disabled or a static unit not running, not starting it.\nProcessing triggers for desktop-file-utils (0.26-1) ...\nProcessing triggers for man-db (2.10.1-1) ...\nProcessing triggers for dbus (1.12.20-3) ...\nProcessing triggers for mailcap (3.70+nmu1) ...\nProcessing triggers for kali-menu (2021.4.2) ...<\/code><\/pre>\n\n\n\n<p>Now start and enable the snapd.socket ,<strong><em>Snapd<\/em><\/strong> as well as<em><strong> snapd.appamor<\/strong><\/em> using the command below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl enable snapd.socket snapd apparmor\nsudo systemctl start snapd.socket snapd apparmor<\/code><\/pre>\n\n\n\n<p>Check the status of Snapd as below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">systemctl status snapd.socket<\/mark>\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">\u25cf<\/mark> snapd.socket - Socket activation for snappy daemon\n     Loaded: loaded (\/lib\/systemd\/system\/snapd.socket; enabled; vendor preset: disabled)\n     Active:<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\"> active (listening)<\/mark> since Wed 2022-02-16 07:08:59 EST; 27s ago\n      Until: Wed 2022-02-16 07:08:59 EST; 27s ago\n   Triggers: <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">\u25cf<\/mark> snapd.service\n     Listen: \/run\/snapd.socket (Stream)\n             \/run\/snapd-snap.socket (Stream)\n      Tasks: 0 (limit: 9444)\n     Memory: 0B\n        CPU: 357us\n     CGroup: \/system.slice\/snapd.socket\n\nFeb 16 07:08:59 kali systemd&#91;1]: Starting Socket activation for snappy daemon...\nFeb 16 07:08:59 kali systemd&#91;1]: Listening on Socket activation for snappy daemon.<\/code><\/pre>\n\n\n\n<p>Verify the installed version of Snap<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">snap --version<\/mark>\nsnap    2.51.7-2+b1\nsnapd   2.51.7-2+b1\nseries  16\nkali    2022.1\nkernel  5.15.0-kali3-amd64<\/code><\/pre>\n\n\n\n<p>To Update Snap&#8217;s paths on your system, log out and log in back to your system or alternatively reboot it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo reboot -i<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"3-use-snap-on-kali-linux-2022-x\">3. Use Snap on Kali Linux 2022.x.<\/h2>\n\n\n\n<p>Now we are set to use our installed Snap to install independent package formats on our Kali Linux machine. We will test our installation by installing Telegram Desktop.<\/p>\n\n\n\n<p>Search the package on Snap as below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>snap find telegram-desktop<\/code><\/pre>\n\n\n\n<p>Sample Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Name              Version  Publisher         Notes  Summary\ntelegram-desktop  3.4.3    telegram.desktop  -      Telegram Desktop<\/code><\/pre>\n\n\n\n<p>Install the package on snap using the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo snap install telegram-desktop<\/code><\/pre>\n\n\n\n<p>Sample Output:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"97\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x.png\" alt=\"\" class=\"wp-image-110522\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x.png 699w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x-300x42.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x-696x97.png 696w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<p>You can also launch the installed package as below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>snap run telegram-desktop<\/code><\/pre>\n\n\n\n<p>The program will launch as below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"627\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x-1-1024x627.png\" alt=\"\" class=\"wp-image-110523\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x-1-1024x627.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x-1-300x184.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x-1-768x470.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x-1-696x426.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x-1-686x420.png 686w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x-1.png 1060w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>To list all the installed Snap packages use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\"> snap list<\/mark>\nName               Version          Rev    Tracking       Publisher         Notes\nbare               1.0              5      latest\/stable  canonical<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">\u2713<\/mark>        base\ncore20             20211115         1242   latest\/stable  canonical<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">\u2713<\/mark>        base\ngtk-common-themes  0.1-59-g7bca6ae  1519   latest\/stable  canonical<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">\u2713<\/mark>        -\nsnapd              2.52.1           13640  latest\/stable  canonical<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">\u2713<\/mark>        snapd\ntelegram-desktop   3.2.2            3343   latest\/stable  telegram.desktop  -<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"4-update-snap-packages-on-kali-linux\">4. Update Snap Packages on Kali Linux<\/h2>\n\n\n\n<p>Normally, a snap package checks four times a day to track a new version of the installed software. You can change the channel the snap package track by first identifying the channels available for the package.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">snap info <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">gtk-common-themes<\/mark><\/code><\/pre>\n\n\n\n<p>Sample Output:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"377\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x-2.png\" alt=\"\" class=\"wp-image-110524\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x-2.png 710w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x-2-300x159.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/11\/Install-Snapd-and-Use-snap-on-Kali-Linux-2021.x-2-696x370.png 696w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><\/figure>\n\n\n\n<p>As seen there is the tracking channel and several other channels available i.e beta, candidate, and edge.<\/p>\n\n\n\n<p>We can switch tracking to the beta channel as below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">sudo snap <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">refresh<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\"> gtk-common-themes --channel=<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">beta<\/mark>\ngtk-common-themes (beta) 0.1-62-g8745644 from Canonical<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">\u2713<\/mark> refreshed<\/code><\/pre>\n\n\n\n<p>Here, in case a new version is available in the beta channel, it will be tracked and automatically installed on your system.<\/p>\n\n\n\n<p>You can list available updates as below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">sudo snap refresh --list<\/mark>\nAll snaps up to date.<\/code><\/pre>\n\n\n\n<p>In case you have a newer version available for a package, you can force the update manually as below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">sudo snap refresh gtk-common-themes<\/mark>\nsnap \"gtk-common-themes\" has no updates available<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"5-uninstall-snap-packages\">5. Uninstall Snap packages<\/h2>\n\n\n\n<p>You can install a snap package using the <code>remove<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">sudo snap remove telegram-desktop<\/mark>\ntelegram-desktop removed<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion.<\/h2>\n\n\n\n<p>This is the end! I hope you too managed to install Snapd and use snap on Kali Linux. Now you can proceed and install desired packages on Kali Linux.<\/p>\n\n\n\n<p>See more:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/computingforgeeks.com\/deploy-lightweight-kubernetes-with-microk8s-and-snap\/\" target=\"_blank\" rel=\"noreferrer noopener\">Deploy Lightweight Kubernetes with MicroK8s and Snap<\/a><\/li><li><a href=\"https:\/\/computingforgeeks.com\/how-to-install-snap-on-ubuntu-debian-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Install Snap on Ubuntu \/ Debian Linux<\/a><\/li><li><a href=\"https:\/\/computingforgeeks.com\/how-to-install-snap-on-arch-linux-manjaro\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Install Snap on Arch Linux \/ Manjaro<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Traditional package formats refer to those packages built for a specific system and the user has to install the required dependencies for the package. Far apart from traditional package formats, exists distribution independent package formats whereby applications are bundled with all the required dependencies to install and run an application within a single package. This &#8230; <a title=\"Install Snapd and Use snap on Kali Linux\" class=\"read-more\" href=\"https:\/\/computingforgeeks.com\/install-snapd-and-use-snap-on-kali-linux\/\" aria-label=\"Read more about Install Snapd and Use snap on Kali Linux\">Read more<\/a><\/p>\n","protected":false},"author":21,"featured_media":110523,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[712,299,43,50],"tags":[36869,36870,36509,36510],"class_list":["post-110520","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-desktop","category-how-to","category-kali-linux","category-linux-tutorials","tag-install-snap-on-kali-linux","tag-install-snapd-on-kali-linux","tag-snap-on-kali-linux","tag-snapd-on-kali-linux"],"_links":{"self":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/110520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/comments?post=110520"}],"version-history":[{"count":0,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/110520\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media\/110523"}],"wp:attachment":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media?parent=110520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/categories?post=110520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/tags?post=110520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}