Is the /snap/core folder needed?












3















Ubuntu 16.04 - has a /snap/core folder with subfolders of revisions. Do I need the /snap folder at all?



Can I just remove it (and how)?










share|improve this question





























    3















    Ubuntu 16.04 - has a /snap/core folder with subfolders of revisions. Do I need the /snap folder at all?



    Can I just remove it (and how)?










    share|improve this question



























      3












      3








      3








      Ubuntu 16.04 - has a /snap/core folder with subfolders of revisions. Do I need the /snap folder at all?



      Can I just remove it (and how)?










      share|improve this question
















      Ubuntu 16.04 - has a /snap/core folder with subfolders of revisions. Do I need the /snap folder at all?



      Can I just remove it (and how)?







      snap






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 26 '18 at 21:03









      Android Dev

      10.8k63362




      10.8k63362










      asked Jan 26 '18 at 20:56









      JanosJanos

      1622313




      1622313






















          2 Answers
          2






          active

          oldest

          votes


















          1














          Snap is package management tool which was Canonical's new package management tool. And this snap package management used by Ubuntu Software Center--I know this because I never use the snap tool but I have 13+ snap folders.
          That is the reason /snap folder exist, I guess.



          And tool name is snapd. So when you want to install or uninstall package, you should use command like this:



          sudo apt autoremove snapd


          or



          sudo apt autoremove --purge snapd


          If you are installing software package with apt command or synaptic package manager, you don't need snapd package. So you can remove it.



          Ubuntu Software Center will use 'snapd'--that's what happen to me. But after removed snapd, Software Center won't use snapd, it seems.






          share|improve this answer































            4














            The /snap folder isn't a traditional folder full of files. So you don't really delete the contents of that folder and get space back (if that's what you're expecting). This folder is used when snaps are installed. If for example you installed the Spotify snap then you'd end up with a /var/lib/snapd/snaps/spotify_6.snap file which contains the compressed application and libraries. This gets mounted under /snap/spotify/6 and symlinked as /snap/spotify/current.



            The files haven't been uncompressed to that directory, they're just mounted and read at runtime. You can see this with mount | grep spotify, like this:-



            /var/lib/snapd/snaps/spotify_6.snap on /snap/spotify/6 type squashfs (ro,nodev,relatime)



            The same goes for the core runtime snap, which lives in the same location, and is mounted in a similar way. By default on a clean install of Ubuntu there are no snaps installed, even core. However as soon as you install a snap, you get the core snap pulled in, which contains the runtime low level dependencies needed by all snaps.



            While you could unmount the directory and delete the core snap, you'd break all install snaps doing this, and the system will make it hard for you to do that as a result.






            share|improve this answer
























            • OK, I just like a clean system, and based on your explanation I have no need for snap. I may have tried to install something in the past, but presently don't have any snap, so I do not need any residual snap files on the system. No, the issue is not space, just pureness. I'll remove the /snap directory from a different boot.

              – Janos
              Jan 28 '18 at 2:22






            • 4





              I was able to completely remove it with sudo apt purge snapd ubuntu-core-launcher squashfs-tools

              – Janos
              Jan 28 '18 at 2:51











            • Thanks for this comment @Janos. I had 2GB of useless trash in my server removed.

              – marbel
              Oct 27 '18 at 14:41











            • Great! Now I start to understand the snap philosophy, mounting snap packages, etc. My problem is that I used the "Software" program to install and remove stuff and. This, in many instances, created a loit of "snaps". My /var/lib/snapd is full of previously installed and uninstalled programs. My machine start to look line a Vindooz bloatware. I only have presently dosbox, illogically buried away in my ~/snap/dosbox-jz folder. Now, thanks to your latest posting I simply installed dosbox with apt, and will get rid of all traces of snap. Thx!

              – Janos
              Jan 22 at 14:16











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1000177%2fis-the-snap-core-folder-needed%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Snap is package management tool which was Canonical's new package management tool. And this snap package management used by Ubuntu Software Center--I know this because I never use the snap tool but I have 13+ snap folders.
            That is the reason /snap folder exist, I guess.



            And tool name is snapd. So when you want to install or uninstall package, you should use command like this:



            sudo apt autoremove snapd


            or



            sudo apt autoremove --purge snapd


            If you are installing software package with apt command or synaptic package manager, you don't need snapd package. So you can remove it.



            Ubuntu Software Center will use 'snapd'--that's what happen to me. But after removed snapd, Software Center won't use snapd, it seems.






            share|improve this answer




























              1














              Snap is package management tool which was Canonical's new package management tool. And this snap package management used by Ubuntu Software Center--I know this because I never use the snap tool but I have 13+ snap folders.
              That is the reason /snap folder exist, I guess.



              And tool name is snapd. So when you want to install or uninstall package, you should use command like this:



              sudo apt autoremove snapd


              or



              sudo apt autoremove --purge snapd


              If you are installing software package with apt command or synaptic package manager, you don't need snapd package. So you can remove it.



              Ubuntu Software Center will use 'snapd'--that's what happen to me. But after removed snapd, Software Center won't use snapd, it seems.






              share|improve this answer


























                1












                1








                1







                Snap is package management tool which was Canonical's new package management tool. And this snap package management used by Ubuntu Software Center--I know this because I never use the snap tool but I have 13+ snap folders.
                That is the reason /snap folder exist, I guess.



                And tool name is snapd. So when you want to install or uninstall package, you should use command like this:



                sudo apt autoremove snapd


                or



                sudo apt autoremove --purge snapd


                If you are installing software package with apt command or synaptic package manager, you don't need snapd package. So you can remove it.



                Ubuntu Software Center will use 'snapd'--that's what happen to me. But after removed snapd, Software Center won't use snapd, it seems.






                share|improve this answer













                Snap is package management tool which was Canonical's new package management tool. And this snap package management used by Ubuntu Software Center--I know this because I never use the snap tool but I have 13+ snap folders.
                That is the reason /snap folder exist, I guess.



                And tool name is snapd. So when you want to install or uninstall package, you should use command like this:



                sudo apt autoremove snapd


                or



                sudo apt autoremove --purge snapd


                If you are installing software package with apt command or synaptic package manager, you don't need snapd package. So you can remove it.



                Ubuntu Software Center will use 'snapd'--that's what happen to me. But after removed snapd, Software Center won't use snapd, it seems.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 21 at 6:24









                thinklogicallythinklogically

                262




                262

























                    4














                    The /snap folder isn't a traditional folder full of files. So you don't really delete the contents of that folder and get space back (if that's what you're expecting). This folder is used when snaps are installed. If for example you installed the Spotify snap then you'd end up with a /var/lib/snapd/snaps/spotify_6.snap file which contains the compressed application and libraries. This gets mounted under /snap/spotify/6 and symlinked as /snap/spotify/current.



                    The files haven't been uncompressed to that directory, they're just mounted and read at runtime. You can see this with mount | grep spotify, like this:-



                    /var/lib/snapd/snaps/spotify_6.snap on /snap/spotify/6 type squashfs (ro,nodev,relatime)



                    The same goes for the core runtime snap, which lives in the same location, and is mounted in a similar way. By default on a clean install of Ubuntu there are no snaps installed, even core. However as soon as you install a snap, you get the core snap pulled in, which contains the runtime low level dependencies needed by all snaps.



                    While you could unmount the directory and delete the core snap, you'd break all install snaps doing this, and the system will make it hard for you to do that as a result.






                    share|improve this answer
























                    • OK, I just like a clean system, and based on your explanation I have no need for snap. I may have tried to install something in the past, but presently don't have any snap, so I do not need any residual snap files on the system. No, the issue is not space, just pureness. I'll remove the /snap directory from a different boot.

                      – Janos
                      Jan 28 '18 at 2:22






                    • 4





                      I was able to completely remove it with sudo apt purge snapd ubuntu-core-launcher squashfs-tools

                      – Janos
                      Jan 28 '18 at 2:51











                    • Thanks for this comment @Janos. I had 2GB of useless trash in my server removed.

                      – marbel
                      Oct 27 '18 at 14:41











                    • Great! Now I start to understand the snap philosophy, mounting snap packages, etc. My problem is that I used the "Software" program to install and remove stuff and. This, in many instances, created a loit of "snaps". My /var/lib/snapd is full of previously installed and uninstalled programs. My machine start to look line a Vindooz bloatware. I only have presently dosbox, illogically buried away in my ~/snap/dosbox-jz folder. Now, thanks to your latest posting I simply installed dosbox with apt, and will get rid of all traces of snap. Thx!

                      – Janos
                      Jan 22 at 14:16
















                    4














                    The /snap folder isn't a traditional folder full of files. So you don't really delete the contents of that folder and get space back (if that's what you're expecting). This folder is used when snaps are installed. If for example you installed the Spotify snap then you'd end up with a /var/lib/snapd/snaps/spotify_6.snap file which contains the compressed application and libraries. This gets mounted under /snap/spotify/6 and symlinked as /snap/spotify/current.



                    The files haven't been uncompressed to that directory, they're just mounted and read at runtime. You can see this with mount | grep spotify, like this:-



                    /var/lib/snapd/snaps/spotify_6.snap on /snap/spotify/6 type squashfs (ro,nodev,relatime)



                    The same goes for the core runtime snap, which lives in the same location, and is mounted in a similar way. By default on a clean install of Ubuntu there are no snaps installed, even core. However as soon as you install a snap, you get the core snap pulled in, which contains the runtime low level dependencies needed by all snaps.



                    While you could unmount the directory and delete the core snap, you'd break all install snaps doing this, and the system will make it hard for you to do that as a result.






                    share|improve this answer
























                    • OK, I just like a clean system, and based on your explanation I have no need for snap. I may have tried to install something in the past, but presently don't have any snap, so I do not need any residual snap files on the system. No, the issue is not space, just pureness. I'll remove the /snap directory from a different boot.

                      – Janos
                      Jan 28 '18 at 2:22






                    • 4





                      I was able to completely remove it with sudo apt purge snapd ubuntu-core-launcher squashfs-tools

                      – Janos
                      Jan 28 '18 at 2:51











                    • Thanks for this comment @Janos. I had 2GB of useless trash in my server removed.

                      – marbel
                      Oct 27 '18 at 14:41











                    • Great! Now I start to understand the snap philosophy, mounting snap packages, etc. My problem is that I used the "Software" program to install and remove stuff and. This, in many instances, created a loit of "snaps". My /var/lib/snapd is full of previously installed and uninstalled programs. My machine start to look line a Vindooz bloatware. I only have presently dosbox, illogically buried away in my ~/snap/dosbox-jz folder. Now, thanks to your latest posting I simply installed dosbox with apt, and will get rid of all traces of snap. Thx!

                      – Janos
                      Jan 22 at 14:16














                    4












                    4








                    4







                    The /snap folder isn't a traditional folder full of files. So you don't really delete the contents of that folder and get space back (if that's what you're expecting). This folder is used when snaps are installed. If for example you installed the Spotify snap then you'd end up with a /var/lib/snapd/snaps/spotify_6.snap file which contains the compressed application and libraries. This gets mounted under /snap/spotify/6 and symlinked as /snap/spotify/current.



                    The files haven't been uncompressed to that directory, they're just mounted and read at runtime. You can see this with mount | grep spotify, like this:-



                    /var/lib/snapd/snaps/spotify_6.snap on /snap/spotify/6 type squashfs (ro,nodev,relatime)



                    The same goes for the core runtime snap, which lives in the same location, and is mounted in a similar way. By default on a clean install of Ubuntu there are no snaps installed, even core. However as soon as you install a snap, you get the core snap pulled in, which contains the runtime low level dependencies needed by all snaps.



                    While you could unmount the directory and delete the core snap, you'd break all install snaps doing this, and the system will make it hard for you to do that as a result.






                    share|improve this answer













                    The /snap folder isn't a traditional folder full of files. So you don't really delete the contents of that folder and get space back (if that's what you're expecting). This folder is used when snaps are installed. If for example you installed the Spotify snap then you'd end up with a /var/lib/snapd/snaps/spotify_6.snap file which contains the compressed application and libraries. This gets mounted under /snap/spotify/6 and symlinked as /snap/spotify/current.



                    The files haven't been uncompressed to that directory, they're just mounted and read at runtime. You can see this with mount | grep spotify, like this:-



                    /var/lib/snapd/snaps/spotify_6.snap on /snap/spotify/6 type squashfs (ro,nodev,relatime)



                    The same goes for the core runtime snap, which lives in the same location, and is mounted in a similar way. By default on a clean install of Ubuntu there are no snaps installed, even core. However as soon as you install a snap, you get the core snap pulled in, which contains the runtime low level dependencies needed by all snaps.



                    While you could unmount the directory and delete the core snap, you'd break all install snaps doing this, and the system will make it hard for you to do that as a result.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jan 26 '18 at 22:38









                    popeypopey

                    12.9k74791




                    12.9k74791













                    • OK, I just like a clean system, and based on your explanation I have no need for snap. I may have tried to install something in the past, but presently don't have any snap, so I do not need any residual snap files on the system. No, the issue is not space, just pureness. I'll remove the /snap directory from a different boot.

                      – Janos
                      Jan 28 '18 at 2:22






                    • 4





                      I was able to completely remove it with sudo apt purge snapd ubuntu-core-launcher squashfs-tools

                      – Janos
                      Jan 28 '18 at 2:51











                    • Thanks for this comment @Janos. I had 2GB of useless trash in my server removed.

                      – marbel
                      Oct 27 '18 at 14:41











                    • Great! Now I start to understand the snap philosophy, mounting snap packages, etc. My problem is that I used the "Software" program to install and remove stuff and. This, in many instances, created a loit of "snaps". My /var/lib/snapd is full of previously installed and uninstalled programs. My machine start to look line a Vindooz bloatware. I only have presently dosbox, illogically buried away in my ~/snap/dosbox-jz folder. Now, thanks to your latest posting I simply installed dosbox with apt, and will get rid of all traces of snap. Thx!

                      – Janos
                      Jan 22 at 14:16



















                    • OK, I just like a clean system, and based on your explanation I have no need for snap. I may have tried to install something in the past, but presently don't have any snap, so I do not need any residual snap files on the system. No, the issue is not space, just pureness. I'll remove the /snap directory from a different boot.

                      – Janos
                      Jan 28 '18 at 2:22






                    • 4





                      I was able to completely remove it with sudo apt purge snapd ubuntu-core-launcher squashfs-tools

                      – Janos
                      Jan 28 '18 at 2:51











                    • Thanks for this comment @Janos. I had 2GB of useless trash in my server removed.

                      – marbel
                      Oct 27 '18 at 14:41











                    • Great! Now I start to understand the snap philosophy, mounting snap packages, etc. My problem is that I used the "Software" program to install and remove stuff and. This, in many instances, created a loit of "snaps". My /var/lib/snapd is full of previously installed and uninstalled programs. My machine start to look line a Vindooz bloatware. I only have presently dosbox, illogically buried away in my ~/snap/dosbox-jz folder. Now, thanks to your latest posting I simply installed dosbox with apt, and will get rid of all traces of snap. Thx!

                      – Janos
                      Jan 22 at 14:16

















                    OK, I just like a clean system, and based on your explanation I have no need for snap. I may have tried to install something in the past, but presently don't have any snap, so I do not need any residual snap files on the system. No, the issue is not space, just pureness. I'll remove the /snap directory from a different boot.

                    – Janos
                    Jan 28 '18 at 2:22





                    OK, I just like a clean system, and based on your explanation I have no need for snap. I may have tried to install something in the past, but presently don't have any snap, so I do not need any residual snap files on the system. No, the issue is not space, just pureness. I'll remove the /snap directory from a different boot.

                    – Janos
                    Jan 28 '18 at 2:22




                    4




                    4





                    I was able to completely remove it with sudo apt purge snapd ubuntu-core-launcher squashfs-tools

                    – Janos
                    Jan 28 '18 at 2:51





                    I was able to completely remove it with sudo apt purge snapd ubuntu-core-launcher squashfs-tools

                    – Janos
                    Jan 28 '18 at 2:51













                    Thanks for this comment @Janos. I had 2GB of useless trash in my server removed.

                    – marbel
                    Oct 27 '18 at 14:41





                    Thanks for this comment @Janos. I had 2GB of useless trash in my server removed.

                    – marbel
                    Oct 27 '18 at 14:41













                    Great! Now I start to understand the snap philosophy, mounting snap packages, etc. My problem is that I used the "Software" program to install and remove stuff and. This, in many instances, created a loit of "snaps". My /var/lib/snapd is full of previously installed and uninstalled programs. My machine start to look line a Vindooz bloatware. I only have presently dosbox, illogically buried away in my ~/snap/dosbox-jz folder. Now, thanks to your latest posting I simply installed dosbox with apt, and will get rid of all traces of snap. Thx!

                    – Janos
                    Jan 22 at 14:16





                    Great! Now I start to understand the snap philosophy, mounting snap packages, etc. My problem is that I used the "Software" program to install and remove stuff and. This, in many instances, created a loit of "snaps". My /var/lib/snapd is full of previously installed and uninstalled programs. My machine start to look line a Vindooz bloatware. I only have presently dosbox, illogically buried away in my ~/snap/dosbox-jz folder. Now, thanks to your latest posting I simply installed dosbox with apt, and will get rid of all traces of snap. Thx!

                    – Janos
                    Jan 22 at 14:16


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1000177%2fis-the-snap-core-folder-needed%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

                    is 'sed' thread safe

                    How to make a Squid Proxy server?