How to check exactly what apt install [some package] is going to do?












4















I'm trying to compile a C++ project and got an error: xxx.so no such file or directory. In this case, normally I execute the command apt-cache search xxx and I can usually find a package name like xxx-dev, so then I simply execute apt install xxx-dev and it will be OK.



But in fact I don't know exactly what apt install xxx-dev will do. When we execute apt install xxx-dev, we can get some information about what would be installed, etc, but I want to know something more.



If I execute apt install xxx-dev, will it install more things than I need? For example, the error at the beginning told me that xxx.so was missing, however, when I execute apt install xxx-dev, I can usually see that many packages will be installed. Are all of these necessary? Is there a way to check exactly what apt install xxx-dev will do or to check what a deb package contains?










share|improve this question





























    4















    I'm trying to compile a C++ project and got an error: xxx.so no such file or directory. In this case, normally I execute the command apt-cache search xxx and I can usually find a package name like xxx-dev, so then I simply execute apt install xxx-dev and it will be OK.



    But in fact I don't know exactly what apt install xxx-dev will do. When we execute apt install xxx-dev, we can get some information about what would be installed, etc, but I want to know something more.



    If I execute apt install xxx-dev, will it install more things than I need? For example, the error at the beginning told me that xxx.so was missing, however, when I execute apt install xxx-dev, I can usually see that many packages will be installed. Are all of these necessary? Is there a way to check exactly what apt install xxx-dev will do or to check what a deb package contains?










    share|improve this question



























      4












      4








      4


      1






      I'm trying to compile a C++ project and got an error: xxx.so no such file or directory. In this case, normally I execute the command apt-cache search xxx and I can usually find a package name like xxx-dev, so then I simply execute apt install xxx-dev and it will be OK.



      But in fact I don't know exactly what apt install xxx-dev will do. When we execute apt install xxx-dev, we can get some information about what would be installed, etc, but I want to know something more.



      If I execute apt install xxx-dev, will it install more things than I need? For example, the error at the beginning told me that xxx.so was missing, however, when I execute apt install xxx-dev, I can usually see that many packages will be installed. Are all of these necessary? Is there a way to check exactly what apt install xxx-dev will do or to check what a deb package contains?










      share|improve this question
















      I'm trying to compile a C++ project and got an error: xxx.so no such file or directory. In this case, normally I execute the command apt-cache search xxx and I can usually find a package name like xxx-dev, so then I simply execute apt install xxx-dev and it will be OK.



      But in fact I don't know exactly what apt install xxx-dev will do. When we execute apt install xxx-dev, we can get some information about what would be installed, etc, but I want to know something more.



      If I execute apt install xxx-dev, will it install more things than I need? For example, the error at the beginning told me that xxx.so was missing, however, when I execute apt install xxx-dev, I can usually see that many packages will be installed. Are all of these necessary? Is there a way to check exactly what apt install xxx-dev will do or to check what a deb package contains?







      apt package-management software-installation






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 8 '18 at 13:42









      Zanna

      51.1k13138242




      51.1k13138242










      asked Apr 6 '18 at 9:05









      YvesYves

      4192619




      4192619






















          1 Answer
          1






          active

          oldest

          votes


















          7














          Simulate the results of installing a package without actually installing it. Open the terminal and type:



          apt install --simulate package-name


          Results




          • The following additional packages will be installed:

          • Suggested packages:

          • The following NEW packages will be installed:


          • X upgraded, X newly installed, X to remove and X not upgraded. The X's are replaced by numbers. Example: 0 upgraded, 99 newly installed, 0 to remove and 6 not upgraded.


          • Inst - indicates packages that will be installed (99 lines in the above example, one package on each line)


          • Conf - indicates packages that will be configured






          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%2f1022506%2fhow-to-check-exactly-what-apt-install-some-package-is-going-to-do%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            7














            Simulate the results of installing a package without actually installing it. Open the terminal and type:



            apt install --simulate package-name


            Results




            • The following additional packages will be installed:

            • Suggested packages:

            • The following NEW packages will be installed:


            • X upgraded, X newly installed, X to remove and X not upgraded. The X's are replaced by numbers. Example: 0 upgraded, 99 newly installed, 0 to remove and 6 not upgraded.


            • Inst - indicates packages that will be installed (99 lines in the above example, one package on each line)


            • Conf - indicates packages that will be configured






            share|improve this answer






























              7














              Simulate the results of installing a package without actually installing it. Open the terminal and type:



              apt install --simulate package-name


              Results




              • The following additional packages will be installed:

              • Suggested packages:

              • The following NEW packages will be installed:


              • X upgraded, X newly installed, X to remove and X not upgraded. The X's are replaced by numbers. Example: 0 upgraded, 99 newly installed, 0 to remove and 6 not upgraded.


              • Inst - indicates packages that will be installed (99 lines in the above example, one package on each line)


              • Conf - indicates packages that will be configured






              share|improve this answer




























                7












                7








                7







                Simulate the results of installing a package without actually installing it. Open the terminal and type:



                apt install --simulate package-name


                Results




                • The following additional packages will be installed:

                • Suggested packages:

                • The following NEW packages will be installed:


                • X upgraded, X newly installed, X to remove and X not upgraded. The X's are replaced by numbers. Example: 0 upgraded, 99 newly installed, 0 to remove and 6 not upgraded.


                • Inst - indicates packages that will be installed (99 lines in the above example, one package on each line)


                • Conf - indicates packages that will be configured






                share|improve this answer















                Simulate the results of installing a package without actually installing it. Open the terminal and type:



                apt install --simulate package-name


                Results




                • The following additional packages will be installed:

                • Suggested packages:

                • The following NEW packages will be installed:


                • X upgraded, X newly installed, X to remove and X not upgraded. The X's are replaced by numbers. Example: 0 upgraded, 99 newly installed, 0 to remove and 6 not upgraded.


                • Inst - indicates packages that will be installed (99 lines in the above example, one package on each line)


                • Conf - indicates packages that will be configured







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Feb 2 at 9:25

























                answered Apr 6 '18 at 9:22









                karelkarel

                60.6k13131155




                60.6k13131155






























                    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%2f1022506%2fhow-to-check-exactly-what-apt-install-some-package-is-going-to-do%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 change which sound is reproduced for terminal bell?

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents