Discussion:
Bug#865215: release-notes: Perform upgrades with apt(8) instead of apt-get(8)
(too old to reply)
Julian Andres Klode
2017-06-19 20:40:02 UTC
Permalink
Package: release-notes
Severity: wishlist

Upgrades are really an interactive situation, and the apt tool should allow upgrades to go
a bit more smoothly because it has the APT::Get::Upgrade-Allow-New default to true, allowing
additional packages to be installed in the upgrade command.

It also has a nicer interactive output with a progress bar, which is immensely nice when
performing large operations; and colorful output.

For the record, these are the options set by apt(8):

_config->CndSet("Binary::apt::APT::Color", true);
_config->CndSet("Binary::apt::APT::Cache::Show::Version", 2);
_config->CndSet("Binary::apt::APT::Cache::AllVersions", false);
_config->CndSet("Binary::apt::APT::Cache::ShowVirtuals", true);
_config->CndSet("Binary::apt::APT::Cache::Search::Version", 2);
_config->CndSet("Binary::apt::APT::Cache::ShowDependencyType", true);
_config->CndSet("Binary::apt::APT::Cache::ShowVersion", true);
_config->CndSet("Binary::apt::APT::Get::Upgrade-Allow-New", true);
_config->CndSet("Binary::apt::APT::Cmd::Show-Update-Stats", true);
_config->CndSet("Binary::apt::DPkg::Progress-Fancy", true);
_config->CndSet("Binary::apt::APT::Keep-Downloaded-Packages", false);

(The binary::apt prefix allows overriding settings for a specific binary)

While we believe that apt(8) should not be used in scripts (its output be parsed),
that's mostly a matter of it evolving normally, compared to apt-get which is basically
running in a legacy mode to not break anything parsing its output.

-- System Information:
Debian Release: 9.0
APT prefers unstable
APT policy: (900, 'unstable'), (900, 'testing'), (500, 'unstable-debug'), (500, 'buildd-unstable'), (98, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.11.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
--
Debian Developer - deb.li/jak | jak-linux.org - free software dev
| Ubuntu Core Developer |
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to ('inline'). Thank you.
Paul Gevers
2019-03-15 21:40:01 UTC
Permalink
Control: tags -1 patch moreinfo

Hi Julian,
Post by Julian Andres Klode
Upgrades are really an interactive situation, and the apt tool should allow upgrades to go
a bit more smoothly because it has the APT::Get::Upgrade-Allow-New default to true, allowing
additional packages to be installed in the upgrade command.
I have replaced all references to apt-get by apt and added a note in the
section where we recommend apt. Can you please check that I didn't say
anything stupid and that all cases are supported?

Paul
Debian Bug Tracking System
2019-03-15 21:40:02 UTC
Permalink
Post by Paul Gevers
tags -1 patch moreinfo
Bug #865215 [release-notes] release-notes: Perform upgrades with apt(8) instead of apt-get(8)
Added tag(s) patch and moreinfo.
--
865215: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865215
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Debian Bug Tracking System
2019-03-22 21:10:01 UTC
Permalink
Your message dated Fri, 22 Mar 2019 21:58:09 +0100
with message-id <dd97932a-d715-4f15-3516-***@debian.org>
and subject line Re: release-notes: Perform upgrades with apt(8) instead of apt-get(8)
has caused the Debian Bug report #865215,
regarding release-notes: Perform upgrades with apt(8) instead of apt-get(8)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ***@bugs.debian.org
immediately.)
--
865215: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865215
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Loading...