From 690993b1b9b4a932ca5bf5374c59e4cf88f18732 Mon Sep 17 00:00:00 2001 From: Christian Blichmann Date: Tue, 1 Feb 2022 20:59:57 +0100 Subject: Columnar output for package lists similar to 'ls' This change makes it a bit easier to quickly grasp the changes about to be performed by apt. It displays package lists in a columnar format by default, similar to what `ls` produces for files. A new long option `--no-list-columns` and an associated `APT::Get::List-Columns` config setting control the behavior. Usage example, with 60 column wide terminal: ``` $ sudo apt upgrade | Reading package lists... Done | Building dependency tree... Done | Reading state information... Done | Calculating upgrade... Done | The following packages were automatically installed and are | no longer required: | libappindicator1 libindicator7 | libdbusmenu-gtk4 linux-image-5.14.0-4-amd64 | Use 'sudo apt autoremove' to remove them. | The following packages have been kept back: | criu linux-headers-amd64 nvidia-settings | libxnvctrl0 nvidia-modprobe xwayland | 0 upgraded, 0 newly installed, 0 to remove and 6 not upgrade| d. | ``` The effect becomes more pronounced with more packages (e.g. when doing a dist-upgrade). --- doc/apt-get.8.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/apt-get.8.xml') diff --git a/doc/apt-get.8.xml b/doc/apt-get.8.xml index da1e91997..807345a3d 100644 --- a/doc/apt-get.8.xml +++ b/doc/apt-get.8.xml @@ -410,6 +410,12 @@ Configuration Item: APT::Get::Show-Versions. + + Display package lists without arranging them in columns. By + default, package lists are printed in the style of the "ls" command. + Configuration Item: APT::Get::List-Columns. + + This option controls the architecture packages are built for -- cgit v1.2.3-70-g09d2