7
submitted 2 years ago by AntY@lemmy.world to c/debian@lemmy.ml

So I've upgraded to trixie and it comes with apt 3. For some reason the new apt insists on opening the output of some commands in less. For example, "apt list --upgradable" or "apt search" opens the output i less. I can't find how I turn this behavior off. Any advice?

you are viewing a single comment's thread
view the rest of the comments
[-] lurch@sh.itjust.works 5 points 2 years ago

try setting the PAGER env variable to cat. if it works maybe make a wrapper script/function to set it just during apt execution

[-] AntY@lemmy.world 5 points 2 years ago

Great! It works. Wonder what wrapper it might be, it behaves the same in zsh, dash and bash.

[-] bjoern_tantau@swg-empire.de 5 points 2 years ago
alias apt="PAGER=cat apt"
this post was submitted on 12 Jun 2025
7 points (100.0% liked)

Debian operating system

4146 readers
2 users here now

Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian provides more than a pure OS: it comes with over 59000 packages, precompiled software bundled up in a nice format for easy installation on your machine.

Related communities:

founded 6 years ago
MODERATORS