{"id":11359,"date":"2021-10-29T10:21:58","date_gmt":"2021-10-29T10:21:58","guid":{"rendered":"https:\/\/linuxways.net\/?p=11359"},"modified":"2024-02-01T07:24:08","modified_gmt":"2024-02-01T07:24:08","slug":"install-snap-linux-mint-21","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/mint\/install-snap-linux-mint-21\/","title":{"rendered":"How to Install Snap on Linux Mint 21"},"content":{"rendered":"<p><strong>Snap <\/strong>is a popular cross-distribution package manager that enables users to easily install and manage software packages and applications on various Linux distributions. It offers a convenient way to install desired applications\/packages with all their dependencies and also ensures compatibility.<\/p>\n<p>In the Linux Mint systems, <strong>Snap <\/strong>support is not enabled by default. Thus, you cannot install the Snap packages or app on your system. To install Snaps, you have to install and enable <strong>Snap <\/strong>on the Linux Mint system to get a streamlined experience for managing <strong>Snaps <\/strong>(software packages and applications).<\/p>\n<h2><strong>Quick Outline<\/strong><\/h2>\n<ul>\n<li><a href=\"#post-24470-ngx07cu9nsbf\"><strong>How to Install\/Enable Snap on Linux Mint<\/strong><\/a><\/li>\n<li><a href=\"#post-24470-73kqm45yegz8\"><strong>How to Use Snap on Linux Mint<\/strong><\/a><\/li>\n<li><a href=\"#post-24470-uqfqj3an2du2\"><strong>How to Install Snap Store on Linux Mint<\/strong><\/a><\/li>\n<li><a href=\"#post-24470-e73xlilb2rlx\"><strong>How to Remove\/Disable Snap on Linux Mint<\/strong><\/a><\/li>\n<li><a href=\"#post-24470-j3fjiqmg449b\"><strong>Final Thoughts<\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-24470-ngx07cu9nsbf\"><\/a>How to Install\/Enable Snap on Linux Mint<\/h2>\n<p>To install and enable Snap on your Linux Mint systems, follow the below-provided steps:<\/p>\n<p><strong>Step 1: Delete \u201cnosnap.pref\u201d File From System<\/strong><\/p>\n<p>First, remove the \u201cnosnap.pref\u201d file from the system\u2019s APT directory which prevents users from installing Snap applications. You can delete this file using the \u201c<strong>sudo rm<\/strong>\u201d command along with its path:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">rm<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>apt<span class=\"sy0\">\/<\/span>preferences.d<span class=\"sy0\">\/<\/span>nosnap.pref<\/div><\/div>\n<p><img decoding=\"async\" class=\"wp-image-24483\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-1.png\" \/><\/p>\n<p>Alternatively, you can move this file to another desired directory for backup purposes:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">mv<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>apt<span class=\"sy0\">\/<\/span>preferences.d<span class=\"sy0\">\/<\/span>nosnap.pref ~<span class=\"sy0\">\/<\/span>Documents<span class=\"sy0\">\/<\/span>nosnap.backup<\/div><\/div>\n<p><img decoding=\"async\" class=\"wp-image-24486\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-2.png\" \/><\/p>\n<p><strong>Step 2: Update APT Cache<\/strong><\/p>\n<p>After deleting or moving the file from the APT directory, run the given command to update the APT repository\u2019s cache:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt update<\/div><\/div>\n<p>Subsequently, the APT repository\u2019s packages will be updated:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-24493\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-3.png\" \/><\/p>\n<p><strong>Step 3: Install Snap Daemon\/Service<\/strong><\/p>\n<p>Then, install the <strong>Snap <\/strong>Daemon (<strong>snapd<\/strong>) that manages the Snaps on your Linux Mint system using the provided command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> snapd<\/div><\/div>\n<p>By doing so, the Snap Daemon package will be installed:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-24498\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-4.png\" \/><\/p>\n<p><strong>Step 4: Enable Snap Service<\/strong><\/p>\n<p>After that, you also need to enable the <strong>Snap <\/strong>service so that on every restart\/reboot, the Snap Daemon will be running which allows you to install the Snaps:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl <span class=\"kw3\">enable<\/span> snapd<\/div><\/div>\n<p><img decoding=\"async\" class=\"wp-image-24503\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-5.png\" \/><\/p>\n<p><strong>Step 5: Verification <\/strong><\/p>\n<p>Finally, execute the given command to ensure that the <strong>Snap <\/strong>has been installed and enabled on your system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl status snapd<\/div><\/div>\n<p>The below output indicates that <strong>Snap <\/strong>has been enabled successfully:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-24512\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-6.png\" \/><\/p>\n<h2><a id=\"post-24470-73kqm45yegz8\"><\/a>How to Use Snap on Linux Mint<\/h2>\n<p>You can use <strong>Snap <\/strong>to search, install, and manage desired applications and packages on Linux Mint systems via <strong>Snap <\/strong>commands. Go through the provided use cases to understand how <strong>Snap <\/strong>can be used on the Linux Mint system:<\/p>\n<ul>\n<li><a href=\"#post-24470-95crpg1wz1os\"><strong>Search Snaps<\/strong><\/a><\/li>\n<li><a href=\"#post-24470-2l6d61t745dj\"><strong>Install Snaps<\/strong><\/a><\/li>\n<li><a href=\"#post-24470-p9eqe78gbvqu\"><strong>Run Snaps<\/strong><\/a><\/li>\n<li><a href=\"#post-24470-n42m2udn4q6y\"><strong>Show Installed Snaps Information<\/strong><\/a><\/li>\n<li><a href=\"#post-24470-uv8o89ji06pe\"><strong>List Installed Snaps<\/strong><\/a><\/li>\n<li><a href=\"#post-24470-6ar03npd1e5o\"><strong>Update Snaps<\/strong><\/a><\/li>\n<li><a href=\"#post-24470-s8v5ia6qrxmk\"><strong>Downgrade Snaps<\/strong><\/a><\/li>\n<li><a href=\"#post-24470-ql0ul6pxvplp\"><strong>Enable\/Disable Snaps<\/strong><\/a><\/li>\n<li><a href=\"#post-24470-4n4d5sukevy\"><strong>Uninstall Snaps<\/strong><\/a><\/li>\n<\/ul>\n<p><strong>Note: <\/strong>We will be using \u201cSkype\u201d Snap as an example to address all the above-mentioned cases.<\/p>\n<h3><a id=\"post-24470-95crpg1wz1os\"><\/a>Search Snaps<\/h3>\n<p>To search for a specific Snap package or application on Linux Mint, use the \u201c<strong>sudo snap find &lt;package-name&gt;<\/strong>\u201d command and specify the desired package or application name as seen below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap <span class=\"kw2\">find<\/span> skype<\/div><\/div>\n<p>The below output shows the name, version, publisher, and summary of the related searched package:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-24521\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-7.png\" \/><\/p>\n<h3><a id=\"post-24470-2l6d61t745dj\"><\/a>Install Snaps<\/h3>\n<p>To install the desired Snaps from the Snap store on the Linux Mint system, utilize the \u201c<strong>sudo snap install &lt;package-name&gt;<\/strong>\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap <span class=\"kw2\">install<\/span> skype<\/div><\/div>\n<p>As you can see, Skype has been installed successfully using <strong>Snap<\/strong>:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-24527\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-8.png\" \/><\/p>\n<h3><a id=\"post-24470-p9eqe78gbvqu\"><\/a>Run Snaps<\/h3>\n<p>If you want to run the Snap application that you have installed from the Snap store, simply type the name of that application in the terminal as seen below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">skype<\/div><\/div>\n<p>It can be seen that Skype has been launched successfully:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-24553\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-9.png\" \/><\/p>\n<p>Alternatively, you can reboot your system and open the Skype application from the Menu. To do so, first, click on the \u201c<strong>Menu<\/strong>\u201d button and search \u201c<strong>Skype<\/strong>\u201d in the search box. Then, click on \u201c<strong>Skype<\/strong>\u201d app to open it:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-24569\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-10.png\" \/><\/p>\n<h3><a id=\"post-24470-n42m2udn4q6y\"><\/a>Show Installed Snaps Information<\/h3>\n<p>If you want to display the information of the specific installed Snaps, utilize the \u201c<strong>sudo snap info &lt;package-name&gt;<\/strong>\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap info skype<\/div><\/div>\n<p>In the below output, the detailed information of the Skype app can be seen:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-24578\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-11.png\" \/><\/p>\n<h3><a id=\"post-24470-uv8o89ji06pe\"><\/a>List Installed Snaps<\/h3>\n<p>To list all the Snap packages or applications installed on your system from the Snap store, type out the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap list<\/div><\/div>\n<p><img decoding=\"async\" class=\"wp-image-24587\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-12.png\" \/><\/p>\n<h3><a id=\"post-24470-6ar03npd1e5o\"><\/a>Update Snaps<\/h3>\n<p>If you want to update the specific Snap package\/application to the latest version, use the \u201c<strong>sudo snap refresh &lt;package-name&gt;<\/strong>\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap refresh skype<\/div><\/div>\n<p><img decoding=\"async\" class=\"wp-image-24595\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-13.png\" \/><\/p>\n<p>Moreover, run the following command if you want to update all the installed Snaps:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap refresh<\/div><\/div>\n<p><img decoding=\"async\" class=\"wp-image-24602\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-14.png\" \/><\/p>\n<h3><a id=\"post-24470-s8v5ia6qrxmk\"><\/a>Downgrade Snaps<\/h3>\n<p>If you are facing issues after updating your Snap applications, you can revert to the previous version using the \u201c<strong>sudo snap revert &lt;package-name&gt;<\/strong>\u201d command. This command will only work if you have the application\u2019s previous(earlier) version installed on the Linux Mint system. Apart from that, it will display an error. For example, we are trying to revert to Skype\u2019s earlier version:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap revert Skype<\/div><\/div>\n<p>As you can see, we got the error because we did not have the previous version of Skype on our system:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-24611\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-15.png\" \/><\/p>\n<h3><a id=\"post-24470-ql0ul6pxvplp\"><\/a>Enable\/Disable Snaps<\/h3>\n<p>You may want to disable your Snap applications if you are not using it anymore. You can use the \u201c<strong>sudo snap disable &lt;package-name&gt;<\/strong>\u201d command to disable it instead of removing it from your system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap disable skype<\/div><\/div>\n<p><img decoding=\"async\" class=\"wp-image-24618\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-16.png\" \/><\/p>\n<p>You can enable the Snap application again through the \u201c<strong>sudo snap enable &lt;package-name&gt;<\/strong>\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap <span class=\"kw3\">enable<\/span> skype<\/div><\/div>\n<p><strong><img decoding=\"async\" class=\"wp-image-24629\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-17.png\" \/><\/strong><\/p>\n<h3><a id=\"post-24470-4n4d5sukevy\"><\/a>Uninstall\/Remove Snaps<\/h3>\n<p>To remove or uninstall the specific Snap application or package from your Linux Mint system, use the \u201c<strong>sudo snap remove &lt;package-name&gt;<\/strong>\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap remove skype<\/div><\/div>\n<p>According to the below output, Skype has been removed successfully from the system:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-24634\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-18.png\" \/><\/p>\n<h2><a id=\"post-24470-uqfqj3an2du2\"><\/a>How to Install Snap Store on Linux Mint<\/h2>\n<p><strong>Snap store<\/strong> is the Graphical user interface of \u201csnapd\u201d. If you prefer GUI over CLI, you can install Snap Store on your Linux Mint system by executing the below command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> snap <span class=\"kw2\">install<\/span> snap-store<\/div><\/div>\n<p><img decoding=\"async\" class=\"wp-image-24641\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-19.png\" \/><\/p>\n<p>You can launch the Snap store from the Menu by searching for it in the search box:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-24648\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-20.png\" \/><\/p>\n<p>Once, the Snap Store is launched, you can now use it to search, install, and remove Snap packages and applications:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-24658\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-21.png\" \/><\/p>\n<h2><a id=\"post-24470-e73xlilb2rlx\"><\/a>How to Remove\/Disable Snap on Linux Mint<\/h2>\n<p>If you do not need <strong>Snap <\/strong>anymore for Snap application installation and you also want to remove all the installed Snap applications from your system, utilize the provided command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt autoremove snapd <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img decoding=\"async\" class=\"wp-image-24667\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-22.png\" \/><\/p>\n<p>You can also create a new \u201c<strong>nosnap.pref<\/strong>\u201d file to block the installation of Snap applications. Execute the given commands to automatically create the file:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">tee<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>apt<span class=\"sy0\">\/<\/span>preferences.d<span class=\"sy0\">\/<\/span>nosnap.pref<span class=\"co2\">&lt;&lt;EOF<br \/>\n<br \/>\nPackage: snapd<br \/>\n<br \/>\nPin: release a=*<br \/>\n<br \/>\nPin-Priority: -10<br \/>\n<br \/>\nEOF<\/span><\/div><\/div>\n<p><img decoding=\"async\" class=\"wp-image-24671\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24470-23.png\" \/><\/p>\n<p>That was all about installing, using, and removing <strong>Snap <\/strong>on Linux Mint.<\/p>\n<h2><a id=\"post-24470-j3fjiqmg449b\"><\/a>Final Thoughts<\/h2>\n<p><strong>Snap <\/strong>is the widely used package manager for installing and handling packages and applications on Linux distributions. You can easily install and enable <strong>Snap <\/strong>on your Linux Mint system by removing the \u201c<strong>nosnap.pref<\/strong>\u201d file from the APT directory file and executing the \u201c<strong>sudo apt install snapd<\/strong>\u201d command. You can use <strong>Snap <\/strong>to install, run, search, list, remove, and manage Snap packages and applications on your Linux Mint system. Moreover, you can also install Snap Store which is the GUI version of \u201csnapd\u201d for managing Snap packages. This article has illustrated the method to install, use, and remove <strong>Snap <\/strong>on Linux Mint.<\/p>","protected":false},"excerpt":{"rendered":"<p>To install Snap on Linux Mint use the \u201csudo apt install snapd\u201d command. You can use it to install, run, update, or remove Snap applications.<\/p>","protected":false},"author":112,"featured_media":24794,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[129,598],"class_list":["post-11359","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mint","tag-linux-mint-20","tag-snap"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/11359","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\/112"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=11359"}],"version-history":[{"count":1,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/11359\/revisions"}],"predecessor-version":[{"id":24770,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/11359\/revisions\/24770"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/24794"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=11359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=11359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=11359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}