I want less less in my apt

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?

7 points · 3 comments · view on lemmy.world

3 Comments

lurch@sh.itjust.works · 5 pts · 1y (2 replies)

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 pts · 1y (1 reply)

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

bjoern_tantau@swg-empire.de · 5 pts · 1y
alias apt="PAGER=cat apt"