Bug#838132: apt should use a pager for commands that show lots of output

Max Nikulin <[email protected]> Fri, 2 Jan 2026 17:17:20 +0700
Newsgroups gmane.linux.debian.apt.devel
Message-ID <6768aca9-b92d-40aa-bf5e-7486d5c3bc45__25267.6684105367$1767349170$gmane$org@gmail.com>
On Sat, 17 Sep 2016 12:25:01 -0300 Felipe Sateler wrote:
> Commands such as apt list or search would benefit from using a pager.
I have noticed this feature request while I was trying to figure out if 
an issue with pager had been reported. Actually pager has been added 
without mentioning this bug number:

> apt (2.9.18) unstable; urgency=medium
> 
>   * Introduce git-like automatic pager for apt(8), emulating git behavior.
>     It is enabled for the show, list, search, policy, showsrc commands.
>     The pager can be set using APT_PAGER or PAGER and defaults to `pager`
> 
>  -- Julian Andres Klode <[email protected]>  Thu, 19 Dec 2024 18:38:04 +0100

with further improvements:

> apt (2.9.35) unstable; urgency=medium
>   
>   * Respect custom LESS/MORE/LV variables (LP: #2103921)
>   * pager: Also set SMK in LESS, fix LV=C to be LV=-c (LP: #2104280)
>   
>  -- Julian Andres Klode <[email protected]>  Thu, 27 Mar 2025 22:52:21 +0100

- <https://bugs.launchpad.net/bugs/2103921>
   APT doesn't respect pager's configuration with apt show
- <https://bugs.launchpad.net/bugs/2104280>
   [FFe] Pass -SMK to less

There is a request to avoid trimming of long lines by "apt show":
<https://bugs.debian.org/1104623>

I think, this bug may be either closed or retitled to document the new 
feature.