diff options
| author | Christian Blichmann <mail@blichmann.eu> | 2022-02-01 20:59:57 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2024-04-12 15:56:56 +0200 |
| commit | 690993b1b9b4a932ca5bf5374c59e4cf88f18732 (patch) | |
| tree | 7620687642dc3b544e1360dbd97540db39e3a71f /completions | |
| parent | 81c65f7e86b8f16eaaa91d9c205a594b0ebde159 (diff) | |
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).
Diffstat (limited to 'completions')
| -rw-r--r-- | completions/bash/apt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/bash/apt b/completions/bash/apt index 59a8eaa94..7c4b44a1a 100644 --- a/completions/bash/apt +++ b/completions/bash/apt @@ -73,7 +73,7 @@ _apt() case ${command-} in install|reinstall|remove|purge|upgrade|dist-upgrade|full-upgrade|autoremove|autopurge) COMPREPLY=( $( compgen -W '--show-progress - --fix-broken --purge --verbose-versions --auto-remove + --fix-broken --purge --verbose-versions --no-list-columns --auto-remove -s --simulate --dry-run --download --fix-missing |
