{"id":138493,"date":"2024-10-13T20:03:41","date_gmt":"2024-10-13T20:03:41","guid":{"rendered":"https:\/\/linuxiac.com\/?p=138493"},"modified":"2024-10-13T20:38:50","modified_gmt":"2024-10-13T20:38:50","slug":"using-snap-command-on-linux","status":"publish","type":"post","link":"https:\/\/linuxiac.com\/using-snap-command-on-linux\/","title":{"rendered":"Using Snap Command on Linux in Examples"},"content":{"rendered":"\n<p>If you use <a href=\"https:\/\/linuxiac.com\/ubuntu\/\">Ubuntu<\/a> or some of its spins, you probably know that Snap packages play a big role in how some applications are delivered. Canonical\u2014the company behind Ubuntu\u2014relies heavily on this packaging format.<\/p>\n\n\n\n<p>Of course, the Snap format is not limited to Ubuntu; it can be installed on virtually any other Linux distribution. Still, for some reasons beyond this guide&#8217;s scope, it is used exclusively, mainly on Ubuntu and its spins.<\/p>\n\n\n\n<p>It&#8217;s important to note that the distro offers excellent graphical tools for managing software, so users rarely need to use the command line to deal with Snaps. Still, a lot of power and flexibility is hidden there. Learning to use it is important to get a feel for full control over your system. This guide provides exactly that.<\/p>\n\n\n\n<p>By the end, you&#8217;ll feel confident managing software using Snap, keeping your system efficient and up to date. However, before we move on to the practical part, I will introduce you to some explanations needed to fully understand the Snap packet format. So, keep reading.<\/p>\n\n\n\n<div class=\"wp-block-ultimate-post-table-of-content ultp-block-d89a61\"><div class=\"ultp-block-wrapper\"><div class=\"ultp-block-toc\"><div class=\"ultp-toc-header\"><div class=\"ultp-toc-heading\">Table of Contents<\/div><div class=\"ultp-collapsible-toggle  ultp-collapsible-right\"><a class=\"ultp-collapsible-text ultp-collapsible-open\" href=\"javascript:;\">[Open]<\/a><a class=\"ultp-collapsible-text ultp-collapsible-hide\" href=\"javascript:;\">[Close]<\/a><\/div><\/div><div class=\"ultp-block-toc-style1 ultp-block-toc-body\" style=\"display:block;\"><ul class=\"ultp-toc-lists\"><li><a href=\"#What_Is_Snap_and_Snapd_in_Linux?\">What Is Snap and Snapd in Linux?<\/a><\/li><li><a href=\"#Basic_Snap_Commands\">Basic Snap Commands<\/a><ul class=\"ultp-toc-lists\"><li><a href=\"#Searching_for_a_Package\">Searching for a Package<\/a><\/li><li><a href=\"#Viewing_Package_Details\">Viewing Package Details<\/a><\/li><li><a href=\"#Installing_a_Snap_Package\">Installing a Snap Package<\/a><\/li><li><a href=\"#Uninstalling_a_Snap_Package\">Uninstalling a Snap Package<\/a><ul class=\"ultp-toc-lists\"><li><a href=\"#Remove_Multiple_Packages_at_Once\">Remove Multiple Packages at Once<\/a><\/li><li><a href=\"#Purge_Configuration_Files\">Purge Configuration Files<\/a><\/li><\/ul><\/li><\/ul><\/li><li><a href=\"#Managing_Installed_Snap_Packages\">Managing Installed Snap Packages<\/a><ul class=\"ultp-toc-lists\"><li><a href=\"#Listing_Installed_Snap_Packages\">Listing Installed Snap Packages<\/a><\/li><li><a href=\"#Refresh_update_Snap_Packages\">Refresh (update) Snap Packages<\/a><ul class=\"ultp-toc-lists\"><li><a href=\"#Check_for_Available_Updates_Without_Installing\">Check for Available Updates Without Installing<\/a><\/li><\/ul><\/li><li><a href=\"#Rolling_Back_to_a_Previous_Version\">Rolling Back to a Previous Version<\/a><\/li><\/ul><\/li><li><a href=\"#Advanced_Snap_Usage\">Advanced Snap Usage<\/a><ul class=\"ultp-toc-lists\"><li><a href=\"#Setting_Auto-Refresh_Timing\">Setting Auto-Refresh Timing<\/a><\/li><li><a href=\"#Snap_Aliases\">Snap Aliases<\/a><\/li><li><a href=\"#Identifying_Issues_with_Snap_Logs\">Identifying Issues with Snap Logs<\/a><\/li><li><a href=\"#Switching_Between_Channels\">Switching Between Channels<\/a><\/li><li><a href=\"#Tracking_and_Managing_Snap_Changes\">Tracking and Managing Snap Changes<\/a><\/li><li><a href=\"#Disabling\/Enabling_a_Snap_Package\">Disabling\/Enabling a Snap Package<\/a><\/li><\/ul><\/li><li><a href=\"#Bottom_Line\">Bottom Line<\/a><\/li><\/ul><\/div><\/div><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"What_Is_Snap_and_Snapd_in_Linux?\">What Is Snap and Snapd in Linux?<\/h2>\n\n\n\n<p>Snap is a universal, distro-agnostic package format developed by Canonical, the maker of Ubuntu, to simplify software distribution.<\/p>\n\n\n\n<p>Linux distros typically rely on their own package managers and formats, such as <a href=\"https:\/\/linuxiac.com\/apt-command-in-linux\/\" data-type=\"post\" data-id=\"39459\">APT<\/a> for the Debian ecosystem,\u00a0<a href=\"https:\/\/linuxiac.com\/dnf-command-linux\/\" data-type=\"post\" data-id=\"47366\">DNF<\/a>\u00a0for Fedora\/RHEL-based distros, <a href=\"https:\/\/linuxiac.com\/how-to-use-pacman-to-manage-software-on-arch-linux\/\">Pacman<\/a> for Arch and its derivatives, etc.<\/p>\n\n\n\n<p>But let&#8217;s face it\u2014we&#8217;ve all (sometimes) encountered compatibility issues with these package managers at some point or found ourselves needing a newer version of software that wasn&#8217;t available in the distribution&#8217;s repositories. Here&#8217;s when Snap steps in.<\/p>\n\n\n\n<p>Similarly to <a href=\"https:\/\/linuxiac.com\/flatpak-beginners-guide\/\" data-type=\"post\" data-id=\"41106\">Flatpak&#8217;s concept<\/a>, Snap resolves these inconveniences by bundling the application and all its dependencies into a single, self-contained package. Here\u2019s a breakdown of its key features:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Universal Compatibility<\/strong>: Snaps works on a wide range of Linux distributions, eliminating the need for developers to create separate packages for each distro.<\/li>\n\n\n\n<li><strong>Isolation and Security<\/strong>: Each Snap runs in a confined environment that operates independently of other applications on your system. This enhances security by reducing the risk of conflicts or interference between applications.<\/li>\n\n\n\n<li><strong>Automatic Updates<\/strong>: Snap apps can automatically update in the background, ensuring you always have the latest version without manual intervention.<\/li>\n\n\n\n<li><strong>Dependency Management<\/strong>: Since Snaps bundle all their dependencies, you don\u2019t have to worry about installing extra libraries or tools. Everything needed to run the app is included in the package.<\/li>\n\n\n\n<li><strong>Easy Rollback<\/strong>: Snap allows for easy rollback to previous software versions if an update causes issues.<\/li>\n<\/ul>\n\n\n\n<p>Additionally, besides Snap, there is another component that de facto does all the work: <strong>snapd<\/strong>. It is the background service that enables Snap functionality on your system and manages the installation, updates, and removal of Snap packages.<\/p>\n\n\n\n<p>Essentially, snapd is the engine that powers Snap on your Linux machine, handling all the heavy lifting behind the scenes. It works to ensure your Snap applications are securely delivered, properly updated, and seamlessly integrated with your system.<\/p>\n\n\n\n<p>To make things even clearer, here\u2019s how Snap and snapd are related:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Snap<\/strong> refers to the actual application packages themselves. A Snap is a containerized application bundled with all its dependencies into an installable package format, ensuring it can run on any Linux distribution that supports Snap.<\/li>\n\n\n\n<li><strong>snapd<\/strong> is the service or daemon that handles Snap packages on your system. It manages Snaps&#8217; installation, updates, and removal and ensures that they run in isolation from the rest of your system, preventing conflicts with other software.<\/li>\n<\/ul>\n\n\n\n<p>Now that we&#8217;ve clarified things on a conceptual level, it&#8217;s time to move on to the practical part\u2014how to use Snap to manage the software on your Ubuntu system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Basic_Snap_Commands\">Basic Snap Commands<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Searching_for_a_Package\">Searching for a Package<\/h3>\n\n\n\n<p>To search for a Snap package, you can use the <code>snap find<\/code> command. It allows you to search for available Snap packages based on a keyword or package name in the Snap store.<\/p>\n\n\n\n<p>For example, to search for a package related to &#8220;<em>gimp<\/em>,&#8221; you can use the following command:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">snap find gimp<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>This will display a list of packages related to GIMP, along with their name, version, publisher, and a brief description.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-01.jpg\"><img decoding=\"async\" width=\"971\" height=\"192\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-01.jpg\" alt=\"Searching for a package.\" class=\"wp-image-138679\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-01.jpg 971w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-01-380x75.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-01-768x152.jpg 768w\" sizes=\"(max-width: 971px) 100vw, 971px\" \/><\/a><figcaption class=\"wp-element-caption\">Searching for a package.<\/figcaption><\/figure>\n\n\n\n<p>You can now choose the appropriate installation package based on the results list.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Viewing_Package_Details\">Viewing Package Details<\/h3>\n\n\n\n<p>The <code>snap info<\/code> command is very useful &#8211; it gives detailed information about the Snap package, including its version, description, publisher, and available channels. Let&#8217;s say you want to view details about the &#8220;<em>gimp<\/em>&#8221; package.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">snap info gimp<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-02.jpg\"><img decoding=\"async\" width=\"986\" height=\"741\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-02.jpg\" alt=\"Viewing package details.\" class=\"wp-image-138688\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-02.jpg 986w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-02-380x286.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-02-768x577.jpg 768w\" sizes=\"(max-width: 986px) 100vw, 986px\" \/><\/a><figcaption class=\"wp-element-caption\">Viewing package details.<\/figcaption><\/figure>\n\n\n\n<p>In the command&#8217;s output, you\u2019ll get detailed information about the package, including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Name<\/strong>: The official name of the package.<\/li>\n\n\n\n<li><strong>Publisher<\/strong>: The individual or organization responsible for publishing the Snap.<\/li>\n\n\n\n<li><strong>Channels<\/strong>: Snap packages are often available in different channels like:\n<ul class=\"wp-block-list\">\n<li><strong>Stable<\/strong>: The most reliable and tested version.<\/li>\n\n\n\n<li><strong>Candidate<\/strong>: Almost stable, with some testing.<\/li>\n\n\n\n<li><strong>Beta<\/strong>: Less stable, newer features but may have bugs.<\/li>\n\n\n\n<li><strong>Edge<\/strong>: Bleeding-edge development version, usually the least stable.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>The <code>snap info<\/code> command is useful for understanding more about a package before installing or when troubleshooting any versioning or update-related issues.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Installing_a_Snap_Package\">Installing a Snap Package<\/h3>\n\n\n\n<p>Installing a Snap package on a Linux system is straightforward. Once you&#8217;ve found the package, you can install it using the <code>snap install<\/code> command. For instance, to install GIMP, use:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap install gimp<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-03.jpg\"><img decoding=\"async\" width=\"884\" height=\"101\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-03.jpg\" alt=\"Installing a Snap package.\" class=\"wp-image-138703\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-03.jpg 884w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-03-380x43.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-03-768x88.jpg 768w\" sizes=\"(max-width: 884px) 100vw, 884px\" \/><\/a><figcaption class=\"wp-element-caption\">Installing a Snap package.<\/figcaption><\/figure>\n\n\n\n<p>Once installed, you can start the app from the system&#8217;s application menu. However, if you want to install a package from a specific channel, you must append <code>--channel=&lt;channel&gt;<\/code> to the installation command. For example, to install GIMP from a &#8220;<em>preview\/candidate<\/em>&#8221; channel, type to following:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">sudo snap install gimp --channel=preview\/candidate<\/code><\/span><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-05.jpg\"><img decoding=\"async\" width=\"902\" height=\"92\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-05.jpg\" alt=\"Installing a Snap package from a specific channel.\" class=\"wp-image-138718\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-05.jpg 902w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-05-380x39.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-05-768x78.jpg 768w\" sizes=\"(max-width: 902px) 100vw, 902px\" \/><\/a><figcaption class=\"wp-element-caption\">Installing a Snap package from a specific channel.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-06.jpg\"><img decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-06-1024x640.jpg\" alt=\"GIMP preview release running on Ubuntu.\" class=\"wp-image-138724\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-06-1024x640.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-06-380x238.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-06-768x480.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-06-1536x960.jpg 1536w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-06.jpg 1680w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">GIMP preview release running on Ubuntu.<\/figcaption><\/figure>\n\n\n\n<p>Lastly, if you\u2019ve already installed a Snap package from one channel and want to switch to a different one, you can use the &#8220;<em>&#8211;channel<\/em>&#8221; flag during an update.<\/p>\n\n\n\n<p>For example, to switch to the stable GIMP version from the &#8220;<em>latest\/stable<\/em>&#8221; channel, our Snap command would look like this:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap refresh gimp --channel=latest\/stable<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-11.jpg\"><img decoding=\"async\" width=\"941\" height=\"93\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-11.jpg\" alt=\"Switching to a different Snap package's version.\" class=\"wp-image-138790\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-11.jpg 941w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-11-380x38.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-11-768x76.jpg 768w\" sizes=\"(max-width: 941px) 100vw, 941px\" \/><\/a><figcaption class=\"wp-element-caption\">Switching to a different Snap package&#8217;s version.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Uninstalling_a_Snap_Package\">Uninstalling a Snap Package<\/h3>\n\n\n\n<p>Uninstalling a Snap package is very simple. Just type <code>sudo snap remove<\/code> followed by the name of the package you want to remove. For example, if you want to uninstall GIMP, the command would be:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap remove gimp<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-07.jpg\"><img decoding=\"async\" width=\"902\" height=\"92\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-07.jpg\" alt=\"Uninstalling a Snap package.\" class=\"wp-image-138733\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-07.jpg 902w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-07-380x39.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-07-768x78.jpg 768w\" sizes=\"(max-width: 902px) 100vw, 902px\" \/><\/a><figcaption class=\"wp-element-caption\">Uninstalling a Snap package.<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Remove_Multiple_Packages_at_Once\">Remove Multiple Packages at Once<\/h4>\n\n\n\n<p>Additionally, you can uninstall multiple Snap packages using a single command. Just list there&#8217;s names one after another:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap remove gimp vlc brave<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h4 class=\"wp-block-heading\" id=\"Purge_Configuration_Files\">Purge Configuration Files<\/h4>\n\n\n\n<p>While the <code>snap remove<\/code> command typically deletes all the associated files, sometimes it may leave behind user data or configuration files. If you also wish to remove these, you can use the &#8220;<em>&#8211;purge<\/em>&#8221; option.<\/p>\n\n\n\n<p>For example, to remove the GIMP along with its accompanying data, execute the following:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap remove gimp --purge<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>If you are unsure of the exact name of the Snap package that you want to remove, check the next section.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Managing_Installed_Snap_Packages\">Managing Installed Snap Packages<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Listing_Installed_Snap_Packages\">Listing Installed Snap Packages<\/h3>\n\n\n\n<p>To list installed Snap packages on your Linux system, you can use the following command:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">snap list<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-08.jpg\"><img decoding=\"async\" width=\"958\" height=\"517\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-08.jpg\" alt=\"Listing installed Snap packages.\" class=\"wp-image-138763\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-08.jpg 958w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-08-380x205.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-08-768x414.jpg 768w\" sizes=\"(max-width: 958px) 100vw, 958px\" \/><\/a><figcaption class=\"wp-element-caption\">Listing installed Snap packages.<\/figcaption><\/figure>\n\n\n\n<p>The command&#8217;s output list of all the Snap packages installed on your system, along with important details such as the package name, version, revision number, tracking channel (e.g., stable, candidate, beta), and publisher.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Refresh_update_Snap_Packages\">Refresh (update) Snap Packages<\/h3>\n\n\n\n<p>Snap packages are updated automatically by default, but you can manually trigger an update by executing a refresh command. It checks for available updates and refreshes all installed snaps to the latest version.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap refresh<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>Moreover, if you want to update only a specific package, you can specify the package name after the command. For example, to update the GIMP Snap package:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-10\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap refresh gimp<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-10\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h4 class=\"wp-block-heading\" id=\"Check_for_Available_Updates_Without_Installing\">Check for Available Updates Without Installing<\/h4>\n\n\n\n<p>You can also check if there are any updates available for your installed Snap packages without applying the updates by using the following command:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-11\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap refresh --list<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-11\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-09.jpg\"><img decoding=\"async\" width=\"941\" height=\"93\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-09.jpg\" alt=\"Check for available Snap updates without Installing.\" class=\"wp-image-138778\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-09.jpg 941w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-09-380x38.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-09-768x76.jpg 768w\" sizes=\"(max-width: 941px) 100vw, 941px\" \/><\/a><figcaption class=\"wp-element-caption\">Check for available Snap updates without Installing.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Rolling_Back_to_a_Previous_Version\">Rolling Back to a Previous Version<\/h3>\n\n\n\n<p>Rolling back a Snap package to a previous version is a useful feature, especially if the latest version of the application causes issues or doesn\u2019t work as expected. In light of this, Snap packages keep previous versions on hand, so you can easily revert to it.<\/p>\n\n\n\n<p>To do it, use the <code>snap revert<\/code> command followed by the package name to roll back the package to its previous revision:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-12\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap revert gimp<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-12\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-12.jpg\"><img decoding=\"async\" width=\"941\" height=\"93\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-12.jpg\" alt=\"Rolling back to the previous version of the Snap package.\" class=\"wp-image-138799\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-12.jpg 941w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-12-380x38.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-12-768x76.jpg 768w\" sizes=\"(max-width: 941px) 100vw, 941px\" \/><\/a><figcaption class=\"wp-element-caption\">Rolling back to the previous version of the Snap package.<\/figcaption><\/figure>\n\n\n\n<p>After that, you can use the <code>snap list<\/code> command to confirm that the package has been reverted to the earlier version.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Advanced_Snap_Usage\">Advanced Snap Usage<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Setting_Auto-Refresh_Timing\">Setting Auto-Refresh Timing<\/h3>\n\n\n\n<p>By default, Snap automatically updates packages four times a day. You can customize the auto-refresh schedule by setting the refresh timer. For example, to schedule updates to only happen during the night:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-13\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap <span class=\"hljs-built_in\">set<\/span> system refresh.timer=2:00-4:00<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-13\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\" id=\"Snap_Aliases\">Snap Aliases<\/h3>\n\n\n\n<p>Aliases in Snap allow you to create shortcuts or alternative names for installed Snap applications, making it easier to run specific commands. This is particularly useful when a snap command name conflicts with a system command or if you&#8217;d like to simplify the usage of a longer command.<\/p>\n\n\n\n<p>For example, suppose you have installed the &#8220;<em>microk8s<\/em>&#8221; snap, which provides the <code>microk8s.kubectl<\/code> command. To create an alias so you can simply use <code>kubectl<\/code>, run:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-14\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap <span class=\"hljs-built_in\">alias<\/span> microk8s.kubectl kubectl<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-14\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-13.jpg\"><img decoding=\"async\" width=\"941\" height=\"123\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-13.jpg\" alt=\"Creating a Snap alias.\" class=\"wp-image-138814\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-13.jpg 941w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-13-380x50.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-13-768x100.jpg 768w\" sizes=\"(max-width: 941px) 100vw, 941px\" \/><\/a><figcaption class=\"wp-element-caption\">Creating a Snap alias.<\/figcaption><\/figure>\n\n\n\n<p>Now, when you type <code>kubectl<\/code> in the terminal, it will execute <code>microk8s.kubectl<\/code>.<\/p>\n\n\n\n<p>To remove an existing alias, use the <code>snap unalias<\/code> command followed by the alias name. So, to remove the <code>kubectl<\/code> alias you created earlier, execute:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-15\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap <span class=\"hljs-built_in\">unalias<\/span> kubectl<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-15\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-14.jpg\"><img decoding=\"async\" width=\"941\" height=\"123\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-14.jpg\" alt=\"Removing a Snap alias.\" class=\"wp-image-138820\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-14.jpg 941w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-14-380x50.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-14-768x100.jpg 768w\" sizes=\"(max-width: 941px) 100vw, 941px\" \/><\/a><figcaption class=\"wp-element-caption\">Removing a Snap alias.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Identifying_Issues_with_Snap_Logs\">Identifying Issues with Snap Logs<\/h3>\n\n\n\n<p>Snap logs are a useful tool for diagnosing issues with Snap applications and services on a Linux system. The Snap log system captures both application-specific logs and the Snap daemon (snapd) logs, helping you understand what might be going wrong when an application fails to run or when Snap behaves unexpectedly.<\/p>\n\n\n\n<p>If you&#8217;re having trouble with a specific Snap application, you can view its logs using the <code>snap logs<\/code> command, followed by the Snap package name, which retrieves the application\u2019s logs. For example, to view the logs from the &#8220;<em>microk8s<\/em>&#8221; package, run the following:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-16\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap logs microk8s<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-16\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>This will show you the output and error logs generated by the Snap application in real time. It helps identify runtime issues such as crashes, missing dependencies, or misconfiguration.<\/p>\n\n\n\n<p>Furthermore, you can add a &#8220;<em>-f<\/em>&#8221; option that works similarly to the &#8220;<em>tail -f<\/em>&#8221; command in Linux, where it continuously monitors and streams the logs in real time.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Switching_Between_Channels\">Switching Between Channels<\/h3>\n\n\n\n<p>The <code>snap switch<\/code> command is used to change the tracking channel of a Snap package. The main use case is when you want to test new features on the beta or edge version but revert to the stable version if you experience bugs. <\/p>\n\n\n\n<p>As we already mentioned, a &#8220;channel&#8221; refers to the different versions or branches available for the package, such as &#8220;<em>stable<\/em>,&#8221; &#8220;<em>candidate<\/em>,&#8221; &#8220;<em>beta<\/em>,&#8221; and &#8220;<em>edge<\/em>.&#8221; Using <code>snap switch<\/code>, you can move between these channels.<\/p>\n\n\n\n<p>For example, to switch GIMP back to the &#8220;stable&#8221; channel, execute the following:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-17\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap switch --channel=latest\/stable gimp<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-17\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-15.jpg\"><img decoding=\"async\" width=\"941\" height=\"123\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-15.jpg\" alt=\"Switching between Snap channels.\" class=\"wp-image-138826\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-15.jpg 941w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-15-380x50.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-15-768x100.jpg 768w\" sizes=\"(max-width: 941px) 100vw, 941px\" \/><\/a><figcaption class=\"wp-element-caption\">Switching between Snap channels.<\/figcaption><\/figure>\n\n\n\n<p>Once you&#8217;ve switched channels, you need to refresh the package to apply the changes:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-18\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap refresh gimp<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-18\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\" id=\"Tracking_and_Managing_Snap_Changes\">Tracking and Managing Snap Changes<\/h3>\n\n\n\n<p>The <code>snap changes<\/code> command allows you to view and manage changes made by Snap on your Linux system, such as installations, updates, removals, or rollbacks. To list all Snap changes, run:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-19\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">snap changes<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-19\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-16.jpg\"><img decoding=\"async\" width=\"1024\" height=\"624\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-16-1024x624.jpg\" alt=\"Tracking and managing Snap changes.\" class=\"wp-image-138835\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-16-1024x624.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-16-380x231.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-16-768x468.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-16.jpg 1179w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Tracking and managing Snap changes.<\/figcaption><\/figure>\n\n\n\n<p>This will display a list of changes with their IDs, status, and timestamps. Now, to see detailed information about a specific change, use the change ID from the previous command:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-20\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">snap change 30<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-20\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-17.jpg\"><img decoding=\"async\" width=\"1024\" height=\"135\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-17-1024x135.jpg\" alt=\"Check detailed information  about a specific Snap change.\" class=\"wp-image-138841\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-17-1024x135.jpg 1024w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-17-380x50.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-17-768x101.jpg 768w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-17.jpg 1115w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Check detailed information about a specific Snap change.<\/figcaption><\/figure>\n\n\n\n<p>Lastly, if a change is stuck or you want to stop it, you can abort it with the <code>snap abort <\/code>command followed by the change ID:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-21\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap abort 30<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-21\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\" id=\"Disabling\/Enabling_a_Snap_Package\">Disabling\/Enabling a Snap Package<\/h3>\n\n\n\n<p>The <code>snap disable<\/code> and <code>snap enable<\/code> commands allow you to temporarily stop (disable) or reactivate (enable) Snap packages on your system without uninstalling them. For example:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-22\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap <span class=\"hljs-built_in\">disable<\/span> gimp<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-22\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-18.jpg\"><img decoding=\"async\" width=\"935\" height=\"96\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-18.jpg\" alt=\"Disabling a Snap package.\" class=\"wp-image-138847\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-18.jpg 935w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-18-380x39.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-18-768x79.jpg 768w\" sizes=\"(max-width: 935px) 100vw, 935px\" \/><\/a><figcaption class=\"wp-element-caption\">Disabling a Snap package.<\/figcaption><\/figure>\n\n\n\n<p>Conversely, the <code>snap enable<\/code> command reactivates a previously disabled Snap package, allowing it to run again.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-23\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash\">sudo snap <span class=\"hljs-built_in\">enable<\/span> gimp<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-23\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-19.jpg\"><img decoding=\"async\" width=\"935\" height=\"96\" src=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-19.jpg\" alt=\"Enabling a disabled Snap package.\" class=\"wp-image-138850\" srcset=\"https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-19.jpg 935w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-19-380x39.jpg 380w, https:\/\/linuxiac.com\/wp-content\/uploads\/2024\/10\/snap-howto-19-768x79.jpg 768w\" sizes=\"(max-width: 935px) 100vw, 935px\" \/><\/a><figcaption class=\"wp-element-caption\">Enabling a disabled Snap package.<\/figcaption><\/figure>\n\n\n\n<p>The main use case is if you occasionally use certain Snap services. You can disable them and enable them only when necessary. Additionally, these commands are particularly useful for managing system resources or troubleshooting specific applications without removing and reinstalling them completely.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Bottom_Line\">Bottom Line<\/h2>\n\n\n\n<p>Snap is a powerful tool that greatly simplifies software management on Linux, especially for Ubuntu users, where this technology is very much present.<\/p>\n\n\n\n<p>By practicing the examples in this guide, you should now be comfortable using Snap to handle a wide range of software tasks on your system straight from your command line.<\/p>\n\n\n\n<p>For more information, visit the official <a href=\"https:\/\/snapcraft.io\/docs\" target=\"_blank\" rel=\"noreferrer noopener\">Snap documentation<\/a>. Thanks for your time! As always, any suggestions and comments are highly welcome in the section below.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to manage software on Ubuntu and other Linux distros using snap commands to install, remove, and update packages.<\/p>\n","protected":false},"author":10,"featured_media":138496,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,4417],"tags":[1484,2016,43],"class_list":["post-138493","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","category-linux-knowledge","tag-commands","tag-package-manager","tag-snap"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/posts\/138493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/comments?post=138493"}],"version-history":[{"count":0,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/posts\/138493\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/media\/138496"}],"wp:attachment":[{"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/media?parent=138493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/categories?post=138493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxiac.com\/wp-json\/wp\/v2\/tags?post=138493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}