registry team mailing list archive
-
registry team
-
Mailing list archive
-
Message #23114
[Bug 647060] Re: rpm should use $PAGER and the like
One can pretty trivially add $PAGER by just adding a pipe:
rpm -qa --yaml | less
But if you MUST automate this behavior, then a popt alias with --pipe
will achieve that behavior.
These are the basic uglix operations needed:
export PAGER=/bin/more
rpm -qa --yaml --pipe ${PAGER:-/bin/more}
A popt alias (e.g. in this case "--qapager") can then be placed in /etc/popt
(or ~/.popt see "man 3 popt"):
$ cat ~/.popt
rpm alias --qapager -qa --pipe ${PAGER:-/bin/more}
--POPTdesc=$"perform a -qa query piped into $PAGER"
And if you want to have $PAGER wired up as default rpm behavior always, then
add the above to /usr/lib/rpm/rpmpopt.
I personally see no reason to inflict $PAGER everywhere, nor to add Yet More Options, to rpm
when you can _ALREADY_ change the rpm behavior however you wish.
** Changed in: rpm
Status: New => Won't Fix
** Changed in: rpm
Importance: Undecided => Low
** Changed in: rpm
Assignee: (unassigned) => Jeff Johnson (n3npq)
** Changed in: rpm
Milestone: None => 5.1.10
** Changed in: rpm
Status: Won't Fix => Opinion
--
rpm should use $PAGER and the like
https://bugs.launchpad.net/bugs/647060
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for Fedora.
References