apt-cache/apt search packages that are not installed











up vote
1
down vote

favorite
1












I can search packages with apt-cache search <package_name>, or search installed packages with apt list --installed | grep <package_name>.



How about packages that are not installed? How do I search the list of non-installed package with apt-cache or apt?










share|improve this question


























    up vote
    1
    down vote

    favorite
    1












    I can search packages with apt-cache search <package_name>, or search installed packages with apt list --installed | grep <package_name>.



    How about packages that are not installed? How do I search the list of non-installed package with apt-cache or apt?










    share|improve this question
























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      I can search packages with apt-cache search <package_name>, or search installed packages with apt list --installed | grep <package_name>.



      How about packages that are not installed? How do I search the list of non-installed package with apt-cache or apt?










      share|improve this question













      I can search packages with apt-cache search <package_name>, or search installed packages with apt list --installed | grep <package_name>.



      How about packages that are not installed? How do I search the list of non-installed package with apt-cache or apt?







      apt search apt-cache






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 14 '17 at 15:23









      Kong Chun Ho

      342211




      342211






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          You can see them like this... but not in nice colours



          apt list --installed=false | grep -v '[installed'





          share|improve this answer























          • The package that are installed will be still in the list but with [installed] at the end.
            – Kong Chun Ho
            May 14 '17 at 15:49








          • 1




            you are right @KongChunHo! I am surprised... you can get rid of them with grep... but that's not a very nice solution
            – Zanna
            May 14 '17 at 15:50










          • Are you sure nothing will come before installed, or the order of installed, automatic get reversed?
            – Kong Chun Ho
            May 14 '17 at 15:55










          • my results are, installed always comes first and before automatic. I didn't find installed anywhere in the package list other than at the end of the lines @KongChunHo
            – Zanna
            May 14 '17 at 16:00




















          up vote
          0
          down vote













          I realize that this does not use apt-cache or apt, but aptitude provides some powerful ways of searching:



          aptitude search '!~i ^apt*'


          or equivalently,



          aptitude search '?not(?installed) ^apt*'


          produces an output like:



          p   apt-forktracer                                                                         - utility for tracking non-official package versions
          p apt-listbugs - tool which lists critical bugs before each APT installation
          p apt-listdifferences - source differences notification tool
          p apt-mirror - APT sources mirroring tool
          p apt-move - maintain Debian packages in a package pool
          p apt-offline - offline APT package manager
          p apt-offline-gui - offline APT package manager - GUI
          p apt-rdepends - recursively lists package dependencies
          p apt-show-source - Shows source-package information
          p apt-show-versions - lists available package versions with distribution
          p apt-src - manage Debian source packages
          p apt-transport-https - https download transport for APT
          ...


          Note that the first letter of each line gives the state of the package; here are some common ones:



          p     no trace of the package exists on system
          c package has configuration files remaining on system
          v virtual package





          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%2f915107%2fapt-cache-apt-search-packages-that-are-not-installed%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








            up vote
            0
            down vote



            accepted










            You can see them like this... but not in nice colours



            apt list --installed=false | grep -v '[installed'





            share|improve this answer























            • The package that are installed will be still in the list but with [installed] at the end.
              – Kong Chun Ho
              May 14 '17 at 15:49








            • 1




              you are right @KongChunHo! I am surprised... you can get rid of them with grep... but that's not a very nice solution
              – Zanna
              May 14 '17 at 15:50










            • Are you sure nothing will come before installed, or the order of installed, automatic get reversed?
              – Kong Chun Ho
              May 14 '17 at 15:55










            • my results are, installed always comes first and before automatic. I didn't find installed anywhere in the package list other than at the end of the lines @KongChunHo
              – Zanna
              May 14 '17 at 16:00

















            up vote
            0
            down vote



            accepted










            You can see them like this... but not in nice colours



            apt list --installed=false | grep -v '[installed'





            share|improve this answer























            • The package that are installed will be still in the list but with [installed] at the end.
              – Kong Chun Ho
              May 14 '17 at 15:49








            • 1




              you are right @KongChunHo! I am surprised... you can get rid of them with grep... but that's not a very nice solution
              – Zanna
              May 14 '17 at 15:50










            • Are you sure nothing will come before installed, or the order of installed, automatic get reversed?
              – Kong Chun Ho
              May 14 '17 at 15:55










            • my results are, installed always comes first and before automatic. I didn't find installed anywhere in the package list other than at the end of the lines @KongChunHo
              – Zanna
              May 14 '17 at 16:00















            up vote
            0
            down vote



            accepted







            up vote
            0
            down vote



            accepted






            You can see them like this... but not in nice colours



            apt list --installed=false | grep -v '[installed'





            share|improve this answer














            You can see them like this... but not in nice colours



            apt list --installed=false | grep -v '[installed'






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited May 14 '17 at 15:51

























            answered May 14 '17 at 15:45









            Zanna

            49.2k13123234




            49.2k13123234












            • The package that are installed will be still in the list but with [installed] at the end.
              – Kong Chun Ho
              May 14 '17 at 15:49








            • 1




              you are right @KongChunHo! I am surprised... you can get rid of them with grep... but that's not a very nice solution
              – Zanna
              May 14 '17 at 15:50










            • Are you sure nothing will come before installed, or the order of installed, automatic get reversed?
              – Kong Chun Ho
              May 14 '17 at 15:55










            • my results are, installed always comes first and before automatic. I didn't find installed anywhere in the package list other than at the end of the lines @KongChunHo
              – Zanna
              May 14 '17 at 16:00




















            • The package that are installed will be still in the list but with [installed] at the end.
              – Kong Chun Ho
              May 14 '17 at 15:49








            • 1




              you are right @KongChunHo! I am surprised... you can get rid of them with grep... but that's not a very nice solution
              – Zanna
              May 14 '17 at 15:50










            • Are you sure nothing will come before installed, or the order of installed, automatic get reversed?
              – Kong Chun Ho
              May 14 '17 at 15:55










            • my results are, installed always comes first and before automatic. I didn't find installed anywhere in the package list other than at the end of the lines @KongChunHo
              – Zanna
              May 14 '17 at 16:00


















            The package that are installed will be still in the list but with [installed] at the end.
            – Kong Chun Ho
            May 14 '17 at 15:49






            The package that are installed will be still in the list but with [installed] at the end.
            – Kong Chun Ho
            May 14 '17 at 15:49






            1




            1




            you are right @KongChunHo! I am surprised... you can get rid of them with grep... but that's not a very nice solution
            – Zanna
            May 14 '17 at 15:50




            you are right @KongChunHo! I am surprised... you can get rid of them with grep... but that's not a very nice solution
            – Zanna
            May 14 '17 at 15:50












            Are you sure nothing will come before installed, or the order of installed, automatic get reversed?
            – Kong Chun Ho
            May 14 '17 at 15:55




            Are you sure nothing will come before installed, or the order of installed, automatic get reversed?
            – Kong Chun Ho
            May 14 '17 at 15:55












            my results are, installed always comes first and before automatic. I didn't find installed anywhere in the package list other than at the end of the lines @KongChunHo
            – Zanna
            May 14 '17 at 16:00






            my results are, installed always comes first and before automatic. I didn't find installed anywhere in the package list other than at the end of the lines @KongChunHo
            – Zanna
            May 14 '17 at 16:00














            up vote
            0
            down vote













            I realize that this does not use apt-cache or apt, but aptitude provides some powerful ways of searching:



            aptitude search '!~i ^apt*'


            or equivalently,



            aptitude search '?not(?installed) ^apt*'


            produces an output like:



            p   apt-forktracer                                                                         - utility for tracking non-official package versions
            p apt-listbugs - tool which lists critical bugs before each APT installation
            p apt-listdifferences - source differences notification tool
            p apt-mirror - APT sources mirroring tool
            p apt-move - maintain Debian packages in a package pool
            p apt-offline - offline APT package manager
            p apt-offline-gui - offline APT package manager - GUI
            p apt-rdepends - recursively lists package dependencies
            p apt-show-source - Shows source-package information
            p apt-show-versions - lists available package versions with distribution
            p apt-src - manage Debian source packages
            p apt-transport-https - https download transport for APT
            ...


            Note that the first letter of each line gives the state of the package; here are some common ones:



            p     no trace of the package exists on system
            c package has configuration files remaining on system
            v virtual package





            share|improve this answer

























              up vote
              0
              down vote













              I realize that this does not use apt-cache or apt, but aptitude provides some powerful ways of searching:



              aptitude search '!~i ^apt*'


              or equivalently,



              aptitude search '?not(?installed) ^apt*'


              produces an output like:



              p   apt-forktracer                                                                         - utility for tracking non-official package versions
              p apt-listbugs - tool which lists critical bugs before each APT installation
              p apt-listdifferences - source differences notification tool
              p apt-mirror - APT sources mirroring tool
              p apt-move - maintain Debian packages in a package pool
              p apt-offline - offline APT package manager
              p apt-offline-gui - offline APT package manager - GUI
              p apt-rdepends - recursively lists package dependencies
              p apt-show-source - Shows source-package information
              p apt-show-versions - lists available package versions with distribution
              p apt-src - manage Debian source packages
              p apt-transport-https - https download transport for APT
              ...


              Note that the first letter of each line gives the state of the package; here are some common ones:



              p     no trace of the package exists on system
              c package has configuration files remaining on system
              v virtual package





              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                I realize that this does not use apt-cache or apt, but aptitude provides some powerful ways of searching:



                aptitude search '!~i ^apt*'


                or equivalently,



                aptitude search '?not(?installed) ^apt*'


                produces an output like:



                p   apt-forktracer                                                                         - utility for tracking non-official package versions
                p apt-listbugs - tool which lists critical bugs before each APT installation
                p apt-listdifferences - source differences notification tool
                p apt-mirror - APT sources mirroring tool
                p apt-move - maintain Debian packages in a package pool
                p apt-offline - offline APT package manager
                p apt-offline-gui - offline APT package manager - GUI
                p apt-rdepends - recursively lists package dependencies
                p apt-show-source - Shows source-package information
                p apt-show-versions - lists available package versions with distribution
                p apt-src - manage Debian source packages
                p apt-transport-https - https download transport for APT
                ...


                Note that the first letter of each line gives the state of the package; here are some common ones:



                p     no trace of the package exists on system
                c package has configuration files remaining on system
                v virtual package





                share|improve this answer












                I realize that this does not use apt-cache or apt, but aptitude provides some powerful ways of searching:



                aptitude search '!~i ^apt*'


                or equivalently,



                aptitude search '?not(?installed) ^apt*'


                produces an output like:



                p   apt-forktracer                                                                         - utility for tracking non-official package versions
                p apt-listbugs - tool which lists critical bugs before each APT installation
                p apt-listdifferences - source differences notification tool
                p apt-mirror - APT sources mirroring tool
                p apt-move - maintain Debian packages in a package pool
                p apt-offline - offline APT package manager
                p apt-offline-gui - offline APT package manager - GUI
                p apt-rdepends - recursively lists package dependencies
                p apt-show-source - Shows source-package information
                p apt-show-versions - lists available package versions with distribution
                p apt-src - manage Debian source packages
                p apt-transport-https - https download transport for APT
                ...


                Note that the first letter of each line gives the state of the package; here are some common ones:



                p     no trace of the package exists on system
                c package has configuration files remaining on system
                v virtual package






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 25 at 20:13









                YenForYang

                11




                11






























                    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%2f915107%2fapt-cache-apt-search-packages-that-are-not-installed%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

                    Mont Emei

                    Province de Neuquén

                    Journaliste