Make “apt-get update” show the exact output as `apt update` The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Update Manger offline errorFancy apt-get outputWhere are changelogs for updates to “apt”?Skip apt-get updateapt-get update meaning of 1st. column of outputUnable to update PHP 5.6.x release on a Ubuntu 14.04 Vagrant BoxFilebot 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.xmlSudo apt-get update

What is special about square numbers here?

Can a 1st-level character have an ability score above 18?

Can the prologue be the backstory of your main character?

Create an outline of font

Working through the single responsibility principle (SRP) in Python when calls are expensive

Relations between two reciprocal partial derivatives?

Why can't devices on different VLANs, but on the same subnet, communicate?

How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?

Python - Fishing Simulator

Are my PIs rude or am I just being too sensitive?

How to test the equality of two Pearson correlation coefficients computed from the same sample?

How to copy the contents of all files with a certain name into a new file?

He got a vote 80% that of Emmanuel Macron’s

Segmentation fault output is suppressed when piping stdin into a function. Why?

How do you keep chess fun when your opponent constantly beats you?

Can withdrawing asylum be illegal?

system() function string length limit

Can the DM override racial traits?

Windows 10: How to Lock (not sleep) laptop on lid close?

If the empty set is a subset of every set, why write ... ∪ ∅?

First use of “packing” as in carrying a gun

What is this lever in Argentinian toilets?

Am I ethically obligated to go into work on an off day if the reason is sudden?

What's the point in a preamp?



Make “apt-get update” show the exact output as `apt update`



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Update Manger offline errorFancy apt-get outputWhere are changelogs for updates to “apt”?Skip apt-get updateapt-get update meaning of 1st. column of outputUnable to update PHP 5.6.x release on a Ubuntu 14.04 Vagrant BoxFilebot 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.xmlSudo apt-get update



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








9















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
























  • As far as I knew, apt (Advanced Packaging Tool) and apt-get are different things. They're designed to run differently from what I understood. If one gives you what you want, perhaps make the habit to use that command instead.

    – Brenden McFarling
    Mar 30 at 0:49

















9















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
























  • As far as I knew, apt (Advanced Packaging Tool) and apt-get are different things. They're designed to run differently from what I understood. If one gives you what you want, perhaps make the habit to use that command instead.

    – Brenden McFarling
    Mar 30 at 0:49













9












9








9








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 Mar 25 at 6:41







iBug

















asked Mar 25 at 6:26









iBugiBug

1941213




1941213












  • As far as I knew, apt (Advanced Packaging Tool) and apt-get are different things. They're designed to run differently from what I understood. If one gives you what you want, perhaps make the habit to use that command instead.

    – Brenden McFarling
    Mar 30 at 0:49

















  • As far as I knew, apt (Advanced Packaging Tool) and apt-get are different things. They're designed to run differently from what I understood. If one gives you what you want, perhaps make the habit to use that command instead.

    – Brenden McFarling
    Mar 30 at 0:49
















As far as I knew, apt (Advanced Packaging Tool) and apt-get are different things. They're designed to run differently from what I understood. If one gives you what you want, perhaps make the habit to use that command instead.

– Brenden McFarling
Mar 30 at 0:49





As far as I knew, apt (Advanced Packaging Tool) and apt-get are different things. They're designed to run differently from what I understood. If one gives you what you want, perhaps make the habit to use that command instead.

– Brenden McFarling
Mar 30 at 0:49










3 Answers
3






active

oldest

votes


















9














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|improve this answer























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

    – iBug
    Mar 25 at 6:35











  • 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
    Mar 25 at 6:38











  • apt shows 8 packages can be upgraded. Run 'apt list --upgradable' to see them., while your answer shows 4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

    – iBug
    Mar 25 at 6:40






  • 1





    Yes, that's because you have 8 to upgrade where I have 4. Or are you referring to the text being different?

    – tudor
    Mar 25 at 6:41






  • 4





    Yes, that's exactly what the warning is about. apt will not guarantee you that text, and they may not even guarantee you that number. apt-get however has a strict output requirement because it's used by other softwares (like UIs and daemons) to process it in various ways. So you can either change your code to accept apt-get's output or you can | sed 's/to upgrade/packages can be upgraded/g', for example (and risk your code breaking later).

    – tudor
    Mar 25 at 6:51



















4














Guessing you need to handle the number of available updates, here is a suggestion:



# With no option, returns two numbers, no CR nor LF
/usr/lib/update-notifier/apt-check

# With --human-readable, returns numbers, locale LANG text & CR/LF
/usr/lib/update-notifier/apt-check --human-readable


No need to sudo

The output is easy to work with



More options:



> /usr/lib/update-notifier/apt-check --help
Usage: apt-check [options]

Options:
-h, --help show this help message and exit
-p, --package-names Show the packages that are going to be
installed/upgraded
--human-readable Show human readable output on stdout
--security-updates-unattended
Return the time in days when security updates are
installed unattended (0 means disabled)





share|improve this answer























  • Is this the exact thing used to generate motd on SSH login?

    – iBug
    Mar 25 at 7:02












  • yes it looks like the same output, but i dunno how does motd

    – cmak.fr
    Mar 25 at 7:07


















2














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|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%2f1128447%2fmake-apt-get-update-show-the-exact-output-as-apt-update%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









    9














    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|improve this answer























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

      – iBug
      Mar 25 at 6:35











    • 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
      Mar 25 at 6:38











    • apt shows 8 packages can be upgraded. Run 'apt list --upgradable' to see them., while your answer shows 4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

      – iBug
      Mar 25 at 6:40






    • 1





      Yes, that's because you have 8 to upgrade where I have 4. Or are you referring to the text being different?

      – tudor
      Mar 25 at 6:41






    • 4





      Yes, that's exactly what the warning is about. apt will not guarantee you that text, and they may not even guarantee you that number. apt-get however has a strict output requirement because it's used by other softwares (like UIs and daemons) to process it in various ways. So you can either change your code to accept apt-get's output or you can | sed 's/to upgrade/packages can be upgraded/g', for example (and risk your code breaking later).

      – tudor
      Mar 25 at 6:51
















    9














    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|improve this answer























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

      – iBug
      Mar 25 at 6:35











    • 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
      Mar 25 at 6:38











    • apt shows 8 packages can be upgraded. Run 'apt list --upgradable' to see them., while your answer shows 4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

      – iBug
      Mar 25 at 6:40






    • 1





      Yes, that's because you have 8 to upgrade where I have 4. Or are you referring to the text being different?

      – tudor
      Mar 25 at 6:41






    • 4





      Yes, that's exactly what the warning is about. apt will not guarantee you that text, and they may not even guarantee you that number. apt-get however has a strict output requirement because it's used by other softwares (like UIs and daemons) to process it in various ways. So you can either change your code to accept apt-get's output or you can | sed 's/to upgrade/packages can be upgraded/g', for example (and risk your code breaking later).

      – tudor
      Mar 25 at 6:51














    9












    9








    9







    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|improve this answer













    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|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 25 at 6:34









    tudortudor

    3,10652048




    3,10652048












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

      – iBug
      Mar 25 at 6:35











    • 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
      Mar 25 at 6:38











    • apt shows 8 packages can be upgraded. Run 'apt list --upgradable' to see them., while your answer shows 4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

      – iBug
      Mar 25 at 6:40






    • 1





      Yes, that's because you have 8 to upgrade where I have 4. Or are you referring to the text being different?

      – tudor
      Mar 25 at 6:41






    • 4





      Yes, that's exactly what the warning is about. apt will not guarantee you that text, and they may not even guarantee you that number. apt-get however has a strict output requirement because it's used by other softwares (like UIs and daemons) to process it in various ways. So you can either change your code to accept apt-get's output or you can | sed 's/to upgrade/packages can be upgraded/g', for example (and risk your code breaking later).

      – tudor
      Mar 25 at 6:51


















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

      – iBug
      Mar 25 at 6:35











    • 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
      Mar 25 at 6:38











    • apt shows 8 packages can be upgraded. Run 'apt list --upgradable' to see them., while your answer shows 4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

      – iBug
      Mar 25 at 6:40






    • 1





      Yes, that's because you have 8 to upgrade where I have 4. Or are you referring to the text being different?

      – tudor
      Mar 25 at 6:41






    • 4





      Yes, that's exactly what the warning is about. apt will not guarantee you that text, and they may not even guarantee you that number. apt-get however has a strict output requirement because it's used by other softwares (like UIs and daemons) to process it in various ways. So you can either change your code to accept apt-get's output or you can | sed 's/to upgrade/packages can be upgraded/g', for example (and risk your code breaking later).

      – tudor
      Mar 25 at 6:51

















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

    – iBug
    Mar 25 at 6:35





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

    – iBug
    Mar 25 at 6:35













    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
    Mar 25 at 6:38





    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
    Mar 25 at 6:38













    apt shows 8 packages can be upgraded. Run 'apt list --upgradable' to see them., while your answer shows 4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

    – iBug
    Mar 25 at 6:40





    apt shows 8 packages can be upgraded. Run 'apt list --upgradable' to see them., while your answer shows 4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

    – iBug
    Mar 25 at 6:40




    1




    1





    Yes, that's because you have 8 to upgrade where I have 4. Or are you referring to the text being different?

    – tudor
    Mar 25 at 6:41





    Yes, that's because you have 8 to upgrade where I have 4. Or are you referring to the text being different?

    – tudor
    Mar 25 at 6:41




    4




    4





    Yes, that's exactly what the warning is about. apt will not guarantee you that text, and they may not even guarantee you that number. apt-get however has a strict output requirement because it's used by other softwares (like UIs and daemons) to process it in various ways. So you can either change your code to accept apt-get's output or you can | sed 's/to upgrade/packages can be upgraded/g', for example (and risk your code breaking later).

    – tudor
    Mar 25 at 6:51






    Yes, that's exactly what the warning is about. apt will not guarantee you that text, and they may not even guarantee you that number. apt-get however has a strict output requirement because it's used by other softwares (like UIs and daemons) to process it in various ways. So you can either change your code to accept apt-get's output or you can | sed 's/to upgrade/packages can be upgraded/g', for example (and risk your code breaking later).

    – tudor
    Mar 25 at 6:51














    4














    Guessing you need to handle the number of available updates, here is a suggestion:



    # With no option, returns two numbers, no CR nor LF
    /usr/lib/update-notifier/apt-check

    # With --human-readable, returns numbers, locale LANG text & CR/LF
    /usr/lib/update-notifier/apt-check --human-readable


    No need to sudo

    The output is easy to work with



    More options:



    > /usr/lib/update-notifier/apt-check --help
    Usage: apt-check [options]

    Options:
    -h, --help show this help message and exit
    -p, --package-names Show the packages that are going to be
    installed/upgraded
    --human-readable Show human readable output on stdout
    --security-updates-unattended
    Return the time in days when security updates are
    installed unattended (0 means disabled)





    share|improve this answer























    • Is this the exact thing used to generate motd on SSH login?

      – iBug
      Mar 25 at 7:02












    • yes it looks like the same output, but i dunno how does motd

      – cmak.fr
      Mar 25 at 7:07















    4














    Guessing you need to handle the number of available updates, here is a suggestion:



    # With no option, returns two numbers, no CR nor LF
    /usr/lib/update-notifier/apt-check

    # With --human-readable, returns numbers, locale LANG text & CR/LF
    /usr/lib/update-notifier/apt-check --human-readable


    No need to sudo

    The output is easy to work with



    More options:



    > /usr/lib/update-notifier/apt-check --help
    Usage: apt-check [options]

    Options:
    -h, --help show this help message and exit
    -p, --package-names Show the packages that are going to be
    installed/upgraded
    --human-readable Show human readable output on stdout
    --security-updates-unattended
    Return the time in days when security updates are
    installed unattended (0 means disabled)





    share|improve this answer























    • Is this the exact thing used to generate motd on SSH login?

      – iBug
      Mar 25 at 7:02












    • yes it looks like the same output, but i dunno how does motd

      – cmak.fr
      Mar 25 at 7:07













    4












    4








    4







    Guessing you need to handle the number of available updates, here is a suggestion:



    # With no option, returns two numbers, no CR nor LF
    /usr/lib/update-notifier/apt-check

    # With --human-readable, returns numbers, locale LANG text & CR/LF
    /usr/lib/update-notifier/apt-check --human-readable


    No need to sudo

    The output is easy to work with



    More options:



    > /usr/lib/update-notifier/apt-check --help
    Usage: apt-check [options]

    Options:
    -h, --help show this help message and exit
    -p, --package-names Show the packages that are going to be
    installed/upgraded
    --human-readable Show human readable output on stdout
    --security-updates-unattended
    Return the time in days when security updates are
    installed unattended (0 means disabled)





    share|improve this answer













    Guessing you need to handle the number of available updates, here is a suggestion:



    # With no option, returns two numbers, no CR nor LF
    /usr/lib/update-notifier/apt-check

    # With --human-readable, returns numbers, locale LANG text & CR/LF
    /usr/lib/update-notifier/apt-check --human-readable


    No need to sudo

    The output is easy to work with



    More options:



    > /usr/lib/update-notifier/apt-check --help
    Usage: apt-check [options]

    Options:
    -h, --help show this help message and exit
    -p, --package-names Show the packages that are going to be
    installed/upgraded
    --human-readable Show human readable output on stdout
    --security-updates-unattended
    Return the time in days when security updates are
    installed unattended (0 means disabled)






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 25 at 6:59









    cmak.frcmak.fr

    2,4341121




    2,4341121












    • Is this the exact thing used to generate motd on SSH login?

      – iBug
      Mar 25 at 7:02












    • yes it looks like the same output, but i dunno how does motd

      – cmak.fr
      Mar 25 at 7:07

















    • Is this the exact thing used to generate motd on SSH login?

      – iBug
      Mar 25 at 7:02












    • yes it looks like the same output, but i dunno how does motd

      – cmak.fr
      Mar 25 at 7:07
















    Is this the exact thing used to generate motd on SSH login?

    – iBug
    Mar 25 at 7:02






    Is this the exact thing used to generate motd on SSH login?

    – iBug
    Mar 25 at 7:02














    yes it looks like the same output, but i dunno how does motd

    – cmak.fr
    Mar 25 at 7:07





    yes it looks like the same output, but i dunno how does motd

    – cmak.fr
    Mar 25 at 7:07











    2














    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|improve this answer



























      2














      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|improve this answer

























        2












        2








        2







        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|improve this answer













        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|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 25 at 6:30









        iBugiBug

        1941213




        1941213



























            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-the-exact-output-as-apt-update%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

            Solar Wings Breeze Design and development Specifications (Breeze) References Navigation menu1368-485X"Hang glider: Breeze (Solar Wings)"e

            Kathakali Contents Etymology and nomenclature History Repertoire Songs and musical instruments Traditional plays Styles: Sampradayam Training centers and awards Relationship to other dance forms See also Notes References External links Navigation menueThe Illustrated Encyclopedia of Hinduism: A-MSouth Asian Folklore: An EncyclopediaRoutledge International Encyclopedia of Women: Global Women's Issues and KnowledgeKathakali Dance-drama: Where Gods and Demons Come to PlayKathakali Dance-drama: Where Gods and Demons Come to PlayKathakali Dance-drama: Where Gods and Demons Come to Play10.1353/atj.2005.0004The Illustrated Encyclopedia of Hinduism: A-MEncyclopedia of HinduismKathakali Dance-drama: Where Gods and Demons Come to PlaySonic Liturgy: Ritual and Music in Hindu Tradition"The Mirror of Gesture"Kathakali Dance-drama: Where Gods and Demons Come to Play"Kathakali"Indian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceMedieval Indian Literature: An AnthologyThe Oxford Companion to Indian TheatreSouth Asian Folklore: An Encyclopedia : Afghanistan, Bangladesh, India, Nepal, Pakistan, Sri LankaThe Rise of Performance Studies: Rethinking Richard Schechner's Broad SpectrumIndian Theatre: Traditions of PerformanceModern Asian Theatre and Performance 1900-2000Critical Theory and PerformanceBetween Theater and AnthropologyKathakali603847011Indian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceBetween Theater and AnthropologyBetween Theater and AnthropologyNambeesan Smaraka AwardsArchivedThe Cambridge Guide to TheatreRoutledge International Encyclopedia of Women: Global Women's Issues and KnowledgeThe Garland Encyclopedia of World Music: South Asia : the Indian subcontinentThe Ethos of Noh: Actors and Their Art10.2307/1145740By Means of Performance: Intercultural Studies of Theatre and Ritual10.1017/s204912550000100xReconceiving the Renaissance: A Critical ReaderPerformance TheoryListening to Theatre: The Aural Dimension of Beijing Opera10.2307/1146013Kathakali: The Art of the Non-WorldlyOn KathakaliKathakali, the dance theatreThe Kathakali Complex: Performance & StructureKathakali Dance-Drama: Where Gods and Demons Come to Play10.1093/obo/9780195399318-0071Drama and Ritual of Early Hinduism"In the Shadow of Hollywood Orientalism: Authentic East Indian Dancing"10.1080/08949460490274013Sanskrit Play Production in Ancient IndiaIndian Music: History and StructureBharata, the Nāṭyaśāstra233639306Table of Contents2238067286469807Dance In Indian Painting10.2307/32047833204783Kathakali Dance-Theatre: A Visual Narrative of Sacred Indian MimeIndian Classical Dance: The Renaissance and BeyondKathakali: an indigenous art-form of Keralaeee

            Method to test if a number is a perfect power? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Detecting perfect squares faster than by extracting square rooteffective way to get the integer sequence A181392 from oeisA rarely mentioned fact about perfect powersHow many numbers such $n$ are there that $n<100,lfloorsqrtn rfloor mid n$Check perfect squareness by modulo division against multiple basesFor what pair of integers $(a,b)$ is $3^a + 7^b$ a perfect square.Do there exist any positive integers $n$ such that $lfloore^nrfloor$ is a perfect power? What is the probability that one exists?finding perfect power factors of an integerProve that the sequence contains a perfect square for any natural number $m $ in the domain of $f$ .Counting Perfect Powers