how to disable autorefresh in snap











up vote
6
down vote

favorite












Is it possible to disable autorefresh in snap? This link says that Snaps are updated automatically in the background to the latest version, every day. Some snaps (e.g. vlc) are built daily, and it makes no sense to install them every day.










share|improve this question


























    up vote
    6
    down vote

    favorite












    Is it possible to disable autorefresh in snap? This link says that Snaps are updated automatically in the background to the latest version, every day. Some snaps (e.g. vlc) are built daily, and it makes no sense to install them every day.










    share|improve this question
























      up vote
      6
      down vote

      favorite









      up vote
      6
      down vote

      favorite











      Is it possible to disable autorefresh in snap? This link says that Snaps are updated automatically in the background to the latest version, every day. Some snaps (e.g. vlc) are built daily, and it makes no sense to install them every day.










      share|improve this question













      Is it possible to disable autorefresh in snap? This link says that Snaps are updated automatically in the background to the latest version, every day. Some snaps (e.g. vlc) are built daily, and it makes no sense to install them every day.







      snap






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 30 '17 at 7:51









      Ko Lin

      314




      314






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          1
          down vote













          it's currently not possible to do so,however,you can schedule the time when the snaps are being automatically updated to your liking with this command



          sudo snap set core refresh.schedule=8:00-20:00


          In this case the updates will happen only once a day between 8pm and 8am(An example)






          share|improve this answer























          • ``` snap set core refresh.schedule=20-8 error: cannot perform the following tasks: - Run configure hook of "core" snap (run hook "configure": cannot parse "20": not a valid time) ```
            – sergiusens
            Dec 21 '17 at 16:36












          • that last one worked.
            – sergiusens
            Dec 21 '17 at 17:19


















          up vote
          1
          down vote













          The refresh service is launched by systemd and configured in:




          • /lib/systemd/system/snapd.refresh.service

          • /lib/systemd/system/snapd.refresh.timer


          If you want to disable the autorefresh, override those configurations in /etc/systemd. Probaby the easiest way is to just set the timer to the frequency you like.






          share|improve this answer




























            up vote
            1
            down vote













            It is at the time of this writing not possible, which has stirred quite a debate.



            However, it is possible to disable automatic updating if the network connection is metered.



            First, go to your network settings.



            Network settings



            Then, click on the cog wheels on the right side of both of your network interfaces and tick "restrict background data usage" - this marks the connection as being metered.



            Restrict background data



            Finally, open a terminal and type (docs):



            sudo snap set system refresh.metered=hold





            share|improve this answer























              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',
              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%2f930593%2fhow-to-disable-autorefresh-in-snap%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              1
              down vote













              it's currently not possible to do so,however,you can schedule the time when the snaps are being automatically updated to your liking with this command



              sudo snap set core refresh.schedule=8:00-20:00


              In this case the updates will happen only once a day between 8pm and 8am(An example)






              share|improve this answer























              • ``` snap set core refresh.schedule=20-8 error: cannot perform the following tasks: - Run configure hook of "core" snap (run hook "configure": cannot parse "20": not a valid time) ```
                – sergiusens
                Dec 21 '17 at 16:36












              • that last one worked.
                – sergiusens
                Dec 21 '17 at 17:19















              up vote
              1
              down vote













              it's currently not possible to do so,however,you can schedule the time when the snaps are being automatically updated to your liking with this command



              sudo snap set core refresh.schedule=8:00-20:00


              In this case the updates will happen only once a day between 8pm and 8am(An example)






              share|improve this answer























              • ``` snap set core refresh.schedule=20-8 error: cannot perform the following tasks: - Run configure hook of "core" snap (run hook "configure": cannot parse "20": not a valid time) ```
                – sergiusens
                Dec 21 '17 at 16:36












              • that last one worked.
                – sergiusens
                Dec 21 '17 at 17:19













              up vote
              1
              down vote










              up vote
              1
              down vote









              it's currently not possible to do so,however,you can schedule the time when the snaps are being automatically updated to your liking with this command



              sudo snap set core refresh.schedule=8:00-20:00


              In this case the updates will happen only once a day between 8pm and 8am(An example)






              share|improve this answer














              it's currently not possible to do so,however,you can schedule the time when the snaps are being automatically updated to your liking with this command



              sudo snap set core refresh.schedule=8:00-20:00


              In this case the updates will happen only once a day between 8pm and 8am(An example)







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited May 1 at 6:18









              Anwar

              55.4k21143252




              55.4k21143252










              answered Dec 20 '17 at 15:53









              Tanesh Chuckowree

              112




              112












              • ``` snap set core refresh.schedule=20-8 error: cannot perform the following tasks: - Run configure hook of "core" snap (run hook "configure": cannot parse "20": not a valid time) ```
                – sergiusens
                Dec 21 '17 at 16:36












              • that last one worked.
                – sergiusens
                Dec 21 '17 at 17:19


















              • ``` snap set core refresh.schedule=20-8 error: cannot perform the following tasks: - Run configure hook of "core" snap (run hook "configure": cannot parse "20": not a valid time) ```
                – sergiusens
                Dec 21 '17 at 16:36












              • that last one worked.
                – sergiusens
                Dec 21 '17 at 17:19
















              ``` snap set core refresh.schedule=20-8 error: cannot perform the following tasks: - Run configure hook of "core" snap (run hook "configure": cannot parse "20": not a valid time) ```
              – sergiusens
              Dec 21 '17 at 16:36






              ``` snap set core refresh.schedule=20-8 error: cannot perform the following tasks: - Run configure hook of "core" snap (run hook "configure": cannot parse "20": not a valid time) ```
              – sergiusens
              Dec 21 '17 at 16:36














              that last one worked.
              – sergiusens
              Dec 21 '17 at 17:19




              that last one worked.
              – sergiusens
              Dec 21 '17 at 17:19












              up vote
              1
              down vote













              The refresh service is launched by systemd and configured in:




              • /lib/systemd/system/snapd.refresh.service

              • /lib/systemd/system/snapd.refresh.timer


              If you want to disable the autorefresh, override those configurations in /etc/systemd. Probaby the easiest way is to just set the timer to the frequency you like.






              share|improve this answer

























                up vote
                1
                down vote













                The refresh service is launched by systemd and configured in:




                • /lib/systemd/system/snapd.refresh.service

                • /lib/systemd/system/snapd.refresh.timer


                If you want to disable the autorefresh, override those configurations in /etc/systemd. Probaby the easiest way is to just set the timer to the frequency you like.






                share|improve this answer























                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  The refresh service is launched by systemd and configured in:




                  • /lib/systemd/system/snapd.refresh.service

                  • /lib/systemd/system/snapd.refresh.timer


                  If you want to disable the autorefresh, override those configurations in /etc/systemd. Probaby the easiest way is to just set the timer to the frequency you like.






                  share|improve this answer












                  The refresh service is launched by systemd and configured in:




                  • /lib/systemd/system/snapd.refresh.service

                  • /lib/systemd/system/snapd.refresh.timer


                  If you want to disable the autorefresh, override those configurations in /etc/systemd. Probaby the easiest way is to just set the timer to the frequency you like.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 10 at 13:26









                  Telegrapher

                  886511




                  886511






















                      up vote
                      1
                      down vote













                      It is at the time of this writing not possible, which has stirred quite a debate.



                      However, it is possible to disable automatic updating if the network connection is metered.



                      First, go to your network settings.



                      Network settings



                      Then, click on the cog wheels on the right side of both of your network interfaces and tick "restrict background data usage" - this marks the connection as being metered.



                      Restrict background data



                      Finally, open a terminal and type (docs):



                      sudo snap set system refresh.metered=hold





                      share|improve this answer



























                        up vote
                        1
                        down vote













                        It is at the time of this writing not possible, which has stirred quite a debate.



                        However, it is possible to disable automatic updating if the network connection is metered.



                        First, go to your network settings.



                        Network settings



                        Then, click on the cog wheels on the right side of both of your network interfaces and tick "restrict background data usage" - this marks the connection as being metered.



                        Restrict background data



                        Finally, open a terminal and type (docs):



                        sudo snap set system refresh.metered=hold





                        share|improve this answer

























                          up vote
                          1
                          down vote










                          up vote
                          1
                          down vote









                          It is at the time of this writing not possible, which has stirred quite a debate.



                          However, it is possible to disable automatic updating if the network connection is metered.



                          First, go to your network settings.



                          Network settings



                          Then, click on the cog wheels on the right side of both of your network interfaces and tick "restrict background data usage" - this marks the connection as being metered.



                          Restrict background data



                          Finally, open a terminal and type (docs):



                          sudo snap set system refresh.metered=hold





                          share|improve this answer














                          It is at the time of this writing not possible, which has stirred quite a debate.



                          However, it is possible to disable automatic updating if the network connection is metered.



                          First, go to your network settings.



                          Network settings



                          Then, click on the cog wheels on the right side of both of your network interfaces and tick "restrict background data usage" - this marks the connection as being metered.



                          Restrict background data



                          Finally, open a terminal and type (docs):



                          sudo snap set system refresh.metered=hold






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited yesterday









                          Mihai Capotă

                          1,44711318




                          1,44711318










                          answered Nov 22 at 13:24









                          Martin Andersson

                          1541110




                          1541110






























                              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.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • 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%2f930593%2fhow-to-disable-autorefresh-in-snap%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

                              Quarter-circle Tiles

                              build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

                              Mont Emei