How to find which “package can be updated”?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







14















I have installed Ubuntu 12.04 on Amazon EC2. Sometimes after connecting with the instance I get the following



7 packages can be updated.
4 updates are security updates.


How can I find which packages can be updated? Can I choose if don't wish to update some packages?










share|improve this question

























  • Question: how do I see the number of packages that can be updated after I have connected to the server. It pops up when I first connect but how I do I see it afterwards? Thanks.

    – Joshua Pinter
    Apr 8 '17 at 21:14


















14















I have installed Ubuntu 12.04 on Amazon EC2. Sometimes after connecting with the instance I get the following



7 packages can be updated.
4 updates are security updates.


How can I find which packages can be updated? Can I choose if don't wish to update some packages?










share|improve this question

























  • Question: how do I see the number of packages that can be updated after I have connected to the server. It pops up when I first connect but how I do I see it afterwards? Thanks.

    – Joshua Pinter
    Apr 8 '17 at 21:14














14












14








14


5






I have installed Ubuntu 12.04 on Amazon EC2. Sometimes after connecting with the instance I get the following



7 packages can be updated.
4 updates are security updates.


How can I find which packages can be updated? Can I choose if don't wish to update some packages?










share|improve this question
















I have installed Ubuntu 12.04 on Amazon EC2. Sometimes after connecting with the instance I get the following



7 packages can be updated.
4 updates are security updates.


How can I find which packages can be updated? Can I choose if don't wish to update some packages?







updates package-management






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 8 '17 at 23:43









Joshua Pinter

1956




1956










asked Nov 24 '12 at 15:27









Gaurav AgarwalGaurav Agarwal

3,443164162




3,443164162













  • Question: how do I see the number of packages that can be updated after I have connected to the server. It pops up when I first connect but how I do I see it afterwards? Thanks.

    – Joshua Pinter
    Apr 8 '17 at 21:14



















  • Question: how do I see the number of packages that can be updated after I have connected to the server. It pops up when I first connect but how I do I see it afterwards? Thanks.

    – Joshua Pinter
    Apr 8 '17 at 21:14

















Question: how do I see the number of packages that can be updated after I have connected to the server. It pops up when I first connect but how I do I see it afterwards? Thanks.

– Joshua Pinter
Apr 8 '17 at 21:14





Question: how do I see the number of packages that can be updated after I have connected to the server. It pops up when I first connect but how I do I see it afterwards? Thanks.

– Joshua Pinter
Apr 8 '17 at 21:14










4 Answers
4






active

oldest

votes


















7














You can see what updates are available by typing as sudo aptitude.



For example,



aptitude



And if you don't want any package to update, then you can lock that package.




  1. Open a terminal

  2. Type sudo -s and hit enter


  3. Enter your password for sudo



    echo libxfont1 hold | dpkg --set-selections


  4. Replace libxfont1 with the package you want to pin

  5. Now run sudo apt-get update and then sudo apt-get upgrade.


For more information, check how to pin packages.






share|improve this answer

































    10














    To do a simulated update: sudo apt-get -s upgrade

    To update only a single package: sudo apt-get upgrade packagename_here






    share|improve this answer































      0














      You can hold any certain package, this will keep it at the same version no matter what.



      First run sudo -s, then echo package_name hold | dpkg --set-selections.



      You can then remove the hold with sudo apt-get install package_name.



      Hope that helps.






      share|improve this answer































        0














        Please do this



        sudo cat /var/lib/update-notifier/updates-available


        then check what packages are available for upgrade



        apt list --upgradable



        then just install what you need from the outcome above



        sudo apt-get install PACKAGE_NAME






        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',
          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%2f221385%2fhow-to-find-which-package-can-be-updated%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          4 Answers
          4






          active

          oldest

          votes








          4 Answers
          4






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          7














          You can see what updates are available by typing as sudo aptitude.



          For example,



          aptitude



          And if you don't want any package to update, then you can lock that package.




          1. Open a terminal

          2. Type sudo -s and hit enter


          3. Enter your password for sudo



            echo libxfont1 hold | dpkg --set-selections


          4. Replace libxfont1 with the package you want to pin

          5. Now run sudo apt-get update and then sudo apt-get upgrade.


          For more information, check how to pin packages.






          share|improve this answer






























            7














            You can see what updates are available by typing as sudo aptitude.



            For example,



            aptitude



            And if you don't want any package to update, then you can lock that package.




            1. Open a terminal

            2. Type sudo -s and hit enter


            3. Enter your password for sudo



              echo libxfont1 hold | dpkg --set-selections


            4. Replace libxfont1 with the package you want to pin

            5. Now run sudo apt-get update and then sudo apt-get upgrade.


            For more information, check how to pin packages.






            share|improve this answer




























              7












              7








              7







              You can see what updates are available by typing as sudo aptitude.



              For example,



              aptitude



              And if you don't want any package to update, then you can lock that package.




              1. Open a terminal

              2. Type sudo -s and hit enter


              3. Enter your password for sudo



                echo libxfont1 hold | dpkg --set-selections


              4. Replace libxfont1 with the package you want to pin

              5. Now run sudo apt-get update and then sudo apt-get upgrade.


              For more information, check how to pin packages.






              share|improve this answer















              You can see what updates are available by typing as sudo aptitude.



              For example,



              aptitude



              And if you don't want any package to update, then you can lock that package.




              1. Open a terminal

              2. Type sudo -s and hit enter


              3. Enter your password for sudo



                echo libxfont1 hold | dpkg --set-selections


              4. Replace libxfont1 with the package you want to pin

              5. Now run sudo apt-get update and then sudo apt-get upgrade.


              For more information, check how to pin packages.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Nov 24 '12 at 15:53









              jokerdino

              32.9k21120187




              32.9k21120187










              answered Nov 24 '12 at 15:40









              rɑːdʒɑrɑːdʒɑ

              59.2k85218302




              59.2k85218302

























                  10














                  To do a simulated update: sudo apt-get -s upgrade

                  To update only a single package: sudo apt-get upgrade packagename_here






                  share|improve this answer




























                    10














                    To do a simulated update: sudo apt-get -s upgrade

                    To update only a single package: sudo apt-get upgrade packagename_here






                    share|improve this answer


























                      10












                      10








                      10







                      To do a simulated update: sudo apt-get -s upgrade

                      To update only a single package: sudo apt-get upgrade packagename_here






                      share|improve this answer













                      To do a simulated update: sudo apt-get -s upgrade

                      To update only a single package: sudo apt-get upgrade packagename_here







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Nov 24 '12 at 15:32









                      Dennis KaarsemakerDennis Kaarsemaker

                      5,8721736




                      5,8721736























                          0














                          You can hold any certain package, this will keep it at the same version no matter what.



                          First run sudo -s, then echo package_name hold | dpkg --set-selections.



                          You can then remove the hold with sudo apt-get install package_name.



                          Hope that helps.






                          share|improve this answer




























                            0














                            You can hold any certain package, this will keep it at the same version no matter what.



                            First run sudo -s, then echo package_name hold | dpkg --set-selections.



                            You can then remove the hold with sudo apt-get install package_name.



                            Hope that helps.






                            share|improve this answer


























                              0












                              0








                              0







                              You can hold any certain package, this will keep it at the same version no matter what.



                              First run sudo -s, then echo package_name hold | dpkg --set-selections.



                              You can then remove the hold with sudo apt-get install package_name.



                              Hope that helps.






                              share|improve this answer













                              You can hold any certain package, this will keep it at the same version no matter what.



                              First run sudo -s, then echo package_name hold | dpkg --set-selections.



                              You can then remove the hold with sudo apt-get install package_name.



                              Hope that helps.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Nov 24 '12 at 15:50









                              smooth-texansmooth-texan

                              50225




                              50225























                                  0














                                  Please do this



                                  sudo cat /var/lib/update-notifier/updates-available


                                  then check what packages are available for upgrade



                                  apt list --upgradable



                                  then just install what you need from the outcome above



                                  sudo apt-get install PACKAGE_NAME






                                  share|improve this answer




























                                    0














                                    Please do this



                                    sudo cat /var/lib/update-notifier/updates-available


                                    then check what packages are available for upgrade



                                    apt list --upgradable



                                    then just install what you need from the outcome above



                                    sudo apt-get install PACKAGE_NAME






                                    share|improve this answer


























                                      0












                                      0








                                      0







                                      Please do this



                                      sudo cat /var/lib/update-notifier/updates-available


                                      then check what packages are available for upgrade



                                      apt list --upgradable



                                      then just install what you need from the outcome above



                                      sudo apt-get install PACKAGE_NAME






                                      share|improve this answer













                                      Please do this



                                      sudo cat /var/lib/update-notifier/updates-available


                                      then check what packages are available for upgrade



                                      apt list --upgradable



                                      then just install what you need from the outcome above



                                      sudo apt-get install PACKAGE_NAME







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Mar 27 at 3:07









                                      Andres Leon RangelAndres Leon Rangel

                                      112




                                      112






























                                          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%2f221385%2fhow-to-find-which-package-can-be-updated%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

                                          數位音樂下載

                                          When can things happen in Etherscan, such as the picture below?

                                          格利澤436b