Make “apt-get update” show “x packages can be upgraded”Where do packages installed/upgraded with APT get stored?Seeing apt-get changelogs for to-be-upgraded packagesapt-get update leads to obsolete packagesUpdate Manger offline errorWhere are changelogs for updates to “apt”?Unable to update PHP 5.6.x release on a Ubuntu 14.04 Vagrant Boxapt-get update updates all the packages?Filebot won't work as it depends on JavaFX, but it is installedapt gives “Unstable CLI Interface” warningappstreamcli: AppStream system cache was updated, but problems were found: Metadata files have errors: /var/cache/app-info/xmls/fwupd.xml

Melting point of aspirin, contradicting sources

Will adding a BY-SA image to a blog post make the entire post BY-SA?

Proving a function is onto where f(x)=|x|.

Is it possible to use .desktop files to open local pdf files on specific pages with a browser?

How do I implement a file system driver driver in Linux?

What is this type of notehead called?

Should I install hardwood flooring or cabinets first?

If a character with the Alert feat rolls a crit fail on their Perception check, are they surprised?

Flux received by a negative charge

Proof of Lemma: Every nonzero integer can be written as a product of primes

Customize circled numbers

Fly on a jet pack vs fly with a jet pack?

Is possible to search in vim history?

Does the Mind Blank spell prevent the target from being frightened?

Is a model fitted to data or is data fitted to a model?

Find last 3 digits of this monster number

In Star Trek IV, why did the Bounty go back to a time when whales were already rare?

What does this horizontal bar at the first measure mean?

How will losing mobility of one hand affect my career as a programmer?

Structured binding on const

How to get the similar sounding words together

Java - What do constructor type arguments mean when placed *before* the type?

Reply 'no position' while the job posting is still there

Bob has never been a M before



Make “apt-get update” show “x packages can be upgraded”


Where do packages installed/upgraded with APT get stored?Seeing apt-get changelogs for to-be-upgraded packagesapt-get update leads to obsolete packagesUpdate Manger offline errorWhere are changelogs for updates to “apt”?Unable to update PHP 5.6.x release on a Ubuntu 14.04 Vagrant Boxapt-get update updates all the packages?Filebot won't work as it depends on JavaFX, but it is installedapt gives “Unstable CLI Interface” warningappstreamcli: AppStream system cache was updated, but problems were found: Metadata files have errors: /var/cache/app-info/xmls/fwupd.xml













1















I'm learning the CLI interface of Advanced Packaging Tool. From the output of apt(8) when its stdout isn't a terminal, it isn't suitable for "scripts expecting stable programming interface", so I'm taking a look at apt-get(8).



One difference between apt update and apt-get update is that the latter is missing a final line after all cache has been updated:



8 packages can be upgraded. Run 'apt list --upgradable' to see them.


I want to know how I can get this exact line displayed with apt-get(8).










share|improve this question




























    1















    I'm learning the CLI interface of Advanced Packaging Tool. From the output of apt(8) when its stdout isn't a terminal, it isn't suitable for "scripts expecting stable programming interface", so I'm taking a look at apt-get(8).



    One difference between apt update and apt-get update is that the latter is missing a final line after all cache has been updated:



    8 packages can be upgraded. Run 'apt list --upgradable' to see them.


    I want to know how I can get this exact line displayed with apt-get(8).










    share|improve this question


























      1












      1








      1








      I'm learning the CLI interface of Advanced Packaging Tool. From the output of apt(8) when its stdout isn't a terminal, it isn't suitable for "scripts expecting stable programming interface", so I'm taking a look at apt-get(8).



      One difference between apt update and apt-get update is that the latter is missing a final line after all cache has been updated:



      8 packages can be upgraded. Run 'apt list --upgradable' to see them.


      I want to know how I can get this exact line displayed with apt-get(8).










      share|improve this question
















      I'm learning the CLI interface of Advanced Packaging Tool. From the output of apt(8) when its stdout isn't a terminal, it isn't suitable for "scripts expecting stable programming interface", so I'm taking a look at apt-get(8).



      One difference between apt update and apt-get update is that the latter is missing a final line after all cache has been updated:



      8 packages can be upgraded. Run 'apt list --upgradable' to see them.


      I want to know how I can get this exact line displayed with apt-get(8).







      apt






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 3 mins ago







      iBug

















      asked 11 mins ago









      iBugiBug

      1291212




      1291212




















          2 Answers
          2






          active

          oldest

          votes


















          0














          From man 8 apt:




          ... enables some options ...




          Then I went through /usr/share/doc/apt/examples/configure-index.gz (using zcat(1) to show text content) and noticed this option:



          apt::cmd::show-update-stats


          So I worked out the following command that did exactly what I wanted:



          # apt-get -o apt::cmd::show-update-stats=true update


          Tested to be working on Xenial and Bionic.





          share






























            0














            man apt-get shows:



             -s, --simulate, --just-print, --dry-run, --recon, --no-act
            No action; perform a simulation of events that would occur based on
            the current system state but do not actually change the system.
            Locking will be disabled (Debug::NoLocking) so the system state
            could change while apt-get is running. Simulations can also be
            executed by non-root users which might not have read access to all
            apt configuration distorting the simulation. A notice expressing
            this warning is also shown by default for non-root users
            (APT::Get::Show-User-Simulation-Note). Configuration Item:
            APT::Get::Simulate.


            So if you just do:



            apt-get upgrade --dry-run



            it will output:



            ...
            4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
            ...




            share























            • Yeah, I went through man 8 apt-get and found that option, but the output was different from apt.

              – iBug
              3 mins ago











            • Different how? I just checked on my system and it's identical. I thought it was identical because apt is really a programmatic wrapper around apt-get and that's the reason why the warning exists.

              – tudor
              24 secs ago










            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%2f1128447%2fmake-apt-get-update-show-x-packages-can-be-upgraded%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









            0














            From man 8 apt:




            ... enables some options ...




            Then I went through /usr/share/doc/apt/examples/configure-index.gz (using zcat(1) to show text content) and noticed this option:



            apt::cmd::show-update-stats


            So I worked out the following command that did exactly what I wanted:



            # apt-get -o apt::cmd::show-update-stats=true update


            Tested to be working on Xenial and Bionic.





            share



























              0














              From man 8 apt:




              ... enables some options ...




              Then I went through /usr/share/doc/apt/examples/configure-index.gz (using zcat(1) to show text content) and noticed this option:



              apt::cmd::show-update-stats


              So I worked out the following command that did exactly what I wanted:



              # apt-get -o apt::cmd::show-update-stats=true update


              Tested to be working on Xenial and Bionic.





              share

























                0












                0








                0







                From man 8 apt:




                ... enables some options ...




                Then I went through /usr/share/doc/apt/examples/configure-index.gz (using zcat(1) to show text content) and noticed this option:



                apt::cmd::show-update-stats


                So I worked out the following command that did exactly what I wanted:



                # apt-get -o apt::cmd::show-update-stats=true update


                Tested to be working on Xenial and Bionic.





                share













                From man 8 apt:




                ... enables some options ...




                Then I went through /usr/share/doc/apt/examples/configure-index.gz (using zcat(1) to show text content) and noticed this option:



                apt::cmd::show-update-stats


                So I worked out the following command that did exactly what I wanted:



                # apt-get -o apt::cmd::show-update-stats=true update


                Tested to be working on Xenial and Bionic.






                share











                share


                share










                answered 8 mins ago









                iBugiBug

                1291212




                1291212























                    0














                    man apt-get shows:



                     -s, --simulate, --just-print, --dry-run, --recon, --no-act
                    No action; perform a simulation of events that would occur based on
                    the current system state but do not actually change the system.
                    Locking will be disabled (Debug::NoLocking) so the system state
                    could change while apt-get is running. Simulations can also be
                    executed by non-root users which might not have read access to all
                    apt configuration distorting the simulation. A notice expressing
                    this warning is also shown by default for non-root users
                    (APT::Get::Show-User-Simulation-Note). Configuration Item:
                    APT::Get::Simulate.


                    So if you just do:



                    apt-get upgrade --dry-run



                    it will output:



                    ...
                    4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
                    ...




                    share























                    • Yeah, I went through man 8 apt-get and found that option, but the output was different from apt.

                      – iBug
                      3 mins ago











                    • Different how? I just checked on my system and it's identical. I thought it was identical because apt is really a programmatic wrapper around apt-get and that's the reason why the warning exists.

                      – tudor
                      24 secs ago















                    0














                    man apt-get shows:



                     -s, --simulate, --just-print, --dry-run, --recon, --no-act
                    No action; perform a simulation of events that would occur based on
                    the current system state but do not actually change the system.
                    Locking will be disabled (Debug::NoLocking) so the system state
                    could change while apt-get is running. Simulations can also be
                    executed by non-root users which might not have read access to all
                    apt configuration distorting the simulation. A notice expressing
                    this warning is also shown by default for non-root users
                    (APT::Get::Show-User-Simulation-Note). Configuration Item:
                    APT::Get::Simulate.


                    So if you just do:



                    apt-get upgrade --dry-run



                    it will output:



                    ...
                    4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
                    ...




                    share























                    • Yeah, I went through man 8 apt-get and found that option, but the output was different from apt.

                      – iBug
                      3 mins ago











                    • Different how? I just checked on my system and it's identical. I thought it was identical because apt is really a programmatic wrapper around apt-get and that's the reason why the warning exists.

                      – tudor
                      24 secs ago













                    0












                    0








                    0







                    man apt-get shows:



                     -s, --simulate, --just-print, --dry-run, --recon, --no-act
                    No action; perform a simulation of events that would occur based on
                    the current system state but do not actually change the system.
                    Locking will be disabled (Debug::NoLocking) so the system state
                    could change while apt-get is running. Simulations can also be
                    executed by non-root users which might not have read access to all
                    apt configuration distorting the simulation. A notice expressing
                    this warning is also shown by default for non-root users
                    (APT::Get::Show-User-Simulation-Note). Configuration Item:
                    APT::Get::Simulate.


                    So if you just do:



                    apt-get upgrade --dry-run



                    it will output:



                    ...
                    4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
                    ...




                    share













                    man apt-get shows:



                     -s, --simulate, --just-print, --dry-run, --recon, --no-act
                    No action; perform a simulation of events that would occur based on
                    the current system state but do not actually change the system.
                    Locking will be disabled (Debug::NoLocking) so the system state
                    could change while apt-get is running. Simulations can also be
                    executed by non-root users which might not have read access to all
                    apt configuration distorting the simulation. A notice expressing
                    this warning is also shown by default for non-root users
                    (APT::Get::Show-User-Simulation-Note). Configuration Item:
                    APT::Get::Simulate.


                    So if you just do:



                    apt-get upgrade --dry-run



                    it will output:



                    ...
                    4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
                    ...





                    share











                    share


                    share










                    answered 4 mins ago









                    tudortudor

                    2,97651948




                    2,97651948












                    • Yeah, I went through man 8 apt-get and found that option, but the output was different from apt.

                      – iBug
                      3 mins ago











                    • Different how? I just checked on my system and it's identical. I thought it was identical because apt is really a programmatic wrapper around apt-get and that's the reason why the warning exists.

                      – tudor
                      24 secs ago

















                    • Yeah, I went through man 8 apt-get and found that option, but the output was different from apt.

                      – iBug
                      3 mins ago











                    • Different how? I just checked on my system and it's identical. I thought it was identical because apt is really a programmatic wrapper around apt-get and that's the reason why the warning exists.

                      – tudor
                      24 secs ago
















                    Yeah, I went through man 8 apt-get and found that option, but the output was different from apt.

                    – iBug
                    3 mins ago





                    Yeah, I went through man 8 apt-get and found that option, but the output was different from apt.

                    – iBug
                    3 mins ago













                    Different how? I just checked on my system and it's identical. I thought it was identical because apt is really a programmatic wrapper around apt-get and that's the reason why the warning exists.

                    – tudor
                    24 secs ago





                    Different how? I just checked on my system and it's identical. I thought it was identical because apt is really a programmatic wrapper around apt-get and that's the reason why the warning exists.

                    – tudor
                    24 secs ago

















                    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%2f1128447%2fmake-apt-get-update-show-x-packages-can-be-upgraded%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

                    Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                    Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                    Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org