Bug 637199

Summary: rpm should use $PAGER and the like (eg: like "git log" does)
Product: [Fedora] Fedora Reporter: Thierry Vignaud <thierry.vignaud>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 14CC: ffesti, jnovy, pinto.elia, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-31 08:59:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Thierry Vignaud 2010-09-24 15:05:04 UTC
Description of problem:
For options that are known to output quite a lot of data, rpm shoulduse $PAGER, $LESSOPEN and the like in order to not flood the console.
Eg:  rpm -q --changelog, rpm -qa, ...

Version-Release number of selected component (if applicable):
rpm-4.8.1-5.fc14.x86_64

How reproducible:
always

Steps to Reproduce:
1. run "rpm -q --changelog rpm"
2.
3.
  
Actual results:
console is flooded and only

Expected results:
A nice enhancement would be to automatically use more/less/... like eg man does

Additional info:

Comment 1 Panu Matilainen 2011-01-31 08:59:52 UTC
Sorry but not going to happen. Rpm is not the kind of interactive tool as eg 'man' is, and automatic pager invocation is IMO nothing but annoying distraction to unix tradition. Things like 'ls' dont use automatic paging either.

Comment 2 Thierry Vignaud 2011-01-31 09:37:41 UTC
Sorry to hear this.

I will try one last argument : think of "rpm -q --changelog" as "git log".
Both provides the same kind of data (history).

The later is more usefull in the sense that when it detects an interactive shell, it automatically uses a pager.