Make “apt-get update” show the exact output as `apt update`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
Can a significant change in incentives void an employment contract?
Can someone explain how this makes sense electrically?
Flux received by a negative charge
On a tidally locked planet, would time be quantized?
How should I respond when I lied about my education and the company finds out through background check?
Query about absorption line spectra
Open a doc from terminal, but not by its name
Can I sign legal documents with a smiley face?
Is it improper etiquette to ask your opponent what his/her rating is before the game?
Java - What do constructor type arguments mean when placed *before* the type?
Reply 'no position' while the job posting is still there
Sampling Theorem and reconstruction
A social experiment. What is the worst that can happen?
In Star Trek IV, why did the Bounty go back to a time when whales were already rare?
How to get the similar sounding words together
Is it possible to have a strip of cold climate in the middle of a planet?
Can the Supreme Court overturn an impeachment?
Greco-Roman egalitarianism
Is there a conventional notation or name for the slip angle?
What linear sensor for a keyboard?
Indicating multiple different modes of speech (fantasy language or telepathy)
What does this horizontal bar at the first measure mean?
Could the E-bike drivetrain wear down till needing replacement after 400 km?
Visiting the UK as unmarried couple
Make “apt-get update” show the exact output as `apt update`
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
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
add a comment |
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
add a comment |
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
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
apt
edited 7 mins ago
iBug
asked 21 mins ago
iBugiBug
1291212
1291212
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
...
Yeah, I went throughman 8 apt-get
and found that option, but the output was different fromapt
.
– iBug
13 mins ago
Different how? I just checked on my system and it's identical. I thought it was identical becauseapt
is really a programmatic wrapper aroundapt-get
and that's the reason why the warning exists.
– tudor
10 mins ago
apt
shows8 packages can be upgraded. Run 'apt list --upgradable' to see them.
, while your answer shows4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
– iBug
7 mins ago
Yes, that's because you have 8 to upgrade where I have 4. Or are you referring to the text being different?
– tudor
6 mins ago
I'm talking about text being different, even after normalizing variables into%d
. But +1 for a decent answer anyways.
– iBug
2 mins ago
add a comment |
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
...
Yeah, I went throughman 8 apt-get
and found that option, but the output was different fromapt
.
– iBug
13 mins ago
Different how? I just checked on my system and it's identical. I thought it was identical becauseapt
is really a programmatic wrapper aroundapt-get
and that's the reason why the warning exists.
– tudor
10 mins ago
apt
shows8 packages can be upgraded. Run 'apt list --upgradable' to see them.
, while your answer shows4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
– iBug
7 mins ago
Yes, that's because you have 8 to upgrade where I have 4. Or are you referring to the text being different?
– tudor
6 mins ago
I'm talking about text being different, even after normalizing variables into%d
. But +1 for a decent answer anyways.
– iBug
2 mins ago
add a comment |
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.
...
Yeah, I went throughman 8 apt-get
and found that option, but the output was different fromapt
.
– iBug
13 mins ago
Different how? I just checked on my system and it's identical. I thought it was identical becauseapt
is really a programmatic wrapper aroundapt-get
and that's the reason why the warning exists.
– tudor
10 mins ago
apt
shows8 packages can be upgraded. Run 'apt list --upgradable' to see them.
, while your answer shows4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
– iBug
7 mins ago
Yes, that's because you have 8 to upgrade where I have 4. Or are you referring to the text being different?
– tudor
6 mins ago
I'm talking about text being different, even after normalizing variables into%d
. But +1 for a decent answer anyways.
– iBug
2 mins ago
add a comment |
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.
...
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.
...
answered 14 mins ago
tudortudor
2,98651948
2,98651948
Yeah, I went throughman 8 apt-get
and found that option, but the output was different fromapt
.
– iBug
13 mins ago
Different how? I just checked on my system and it's identical. I thought it was identical becauseapt
is really a programmatic wrapper aroundapt-get
and that's the reason why the warning exists.
– tudor
10 mins ago
apt
shows8 packages can be upgraded. Run 'apt list --upgradable' to see them.
, while your answer shows4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
– iBug
7 mins ago
Yes, that's because you have 8 to upgrade where I have 4. Or are you referring to the text being different?
– tudor
6 mins ago
I'm talking about text being different, even after normalizing variables into%d
. But +1 for a decent answer anyways.
– iBug
2 mins ago
add a comment |
Yeah, I went throughman 8 apt-get
and found that option, but the output was different fromapt
.
– iBug
13 mins ago
Different how? I just checked on my system and it's identical. I thought it was identical becauseapt
is really a programmatic wrapper aroundapt-get
and that's the reason why the warning exists.
– tudor
10 mins ago
apt
shows8 packages can be upgraded. Run 'apt list --upgradable' to see them.
, while your answer shows4 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
– iBug
7 mins ago
Yes, that's because you have 8 to upgrade where I have 4. Or are you referring to the text being different?
– tudor
6 mins ago
I'm talking about text being different, even after normalizing variables into%d
. But +1 for a decent answer anyways.
– iBug
2 mins ago
Yeah, I went through
man 8 apt-get
and found that option, but the output was different from apt
.– iBug
13 mins ago
Yeah, I went through
man 8 apt-get
and found that option, but the output was different from apt
.– iBug
13 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
10 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
10 mins ago
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
7 mins ago
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
7 mins ago
Yes, that's because you have 8 to upgrade where I have 4. Or are you referring to the text being different?
– tudor
6 mins ago
Yes, that's because you have 8 to upgrade where I have 4. Or are you referring to the text being different?
– tudor
6 mins ago
I'm talking about text being different, even after normalizing variables into
%d
. But +1 for a decent answer anyways.– iBug
2 mins ago
I'm talking about text being different, even after normalizing variables into
%d
. But +1 for a decent answer anyways.– iBug
2 mins ago
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered 18 mins ago
iBugiBug
1291212
1291212
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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