Hi,

Colorization of output seems to be added in this commit:
https://salsa.debian.org/apt-team/apt/-/commit/abfae1aec588c1b4ae46f229d8312a3c5e6b8b7a

I have tested this with apt/apt-get 2.9.29 in sid.

For apt, the colorized output is enabled by default.

For apt-get, the colorized output is activated by "APT::Color=true"
option. In command line it would look like this:

    apt-get install alpine  -o "APT::Color=true"



Configuration of colors for installed/installed-dependencies/upgraded/
removed packages seems to be added in this commit:
https://salsa.debian.org/apt-team/apt/-/commit/dc779ff0a33d9da8bc55390ee55ad73d31739e46

The colors are controlled by following options that have the following
default values:
    "APT::Color::Action::Upgrade" "green"
    "APT::Color::Action::Install" "green"
    "APT::Color::Action::Install-Dependencies" "green"
    "APT::Color::Action::Downgrade" "yellow"



These three options come in handy when testing colorization and layout
of information in apt or apt-get:
-o "APT::Color::Action::Remove=blue" -o "APT::Output-Version=30" -o "APT::Color=true"



A full merge request, with screenshots, is here:
https://salsa.debian.org/apt-team/apt/-/merge_requests/337

I like the fact that sections presenting to-be-removed packages comes
last in list of packages affected by a command, because to me knowing
which packages will be removed is most important.

Kamil

Reply via email to