On Fri, Apr 19, 2024 at 02:06:44PM +0200, Antonio wrote: > If you find the "apt autoremove --purge" command in the sequence of the > commands I have indicated, you will notice that it appears three times: > > - in second position produces this output: > > $ apt autoremove --purge ^^^ > Summary: > Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0 > > - in seventh position it produces the same output > > $ apt autoremove --purge ^^^ > Summary: > Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0 > > but the same command, in the fifteenth position produces a different output: ~~~~~~~~~~~~ > > $ apt-get autoremove --purge ^^^^^^^ > 0 updated, 0 installed, 0 to be removed and 0 not updated. > > what has changed? I would always expect the same output...
(Lets play a game! Lets call it: Spot the difference. 😉) As Julian already mentioned, "apt" and "apt-get" have different output. This is intended (for compat) and not random, but yes, it can be a bit confusing if your muscle memory lets you end up mix their use. (Note that not only their output is different; they also have behaviour differences e.g. "apt-get upgrade" vs "apt upgrade") As an interactive user, its is probably best to forget apt-{get,cache,…} exist and get used to 'apt'. If that is missing something compared to the others feel free to report a bug so we can add it – or suggest an alternative as sometimes that might be better approach. Best regards David Kalnischkies
signature.asc
Description: PGP signature