Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 611078 - can't handle more option together
can't handle more option together
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rpm (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Panu Matilainen
BaseOS QE Security Team
Depends On:
  Show dependency treegraph
Reported: 2010-07-03 10:08 EDT by Levente Farkas
Modified: 2011-03-15 10:04 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-07-05 02:46:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Levente Farkas 2010-07-03 10:08:12 EDT
just try to run:
rpm -qa --last --qf "%{N}-%{V}-%{R}\t%{N}\n"
in this case it seems last and qf run after each other in stead of combined together.
Comment 2 Panu Matilainen 2010-07-05 02:46:42 EDT
--last is just a popt-alias (see /usr/lib/rpm/rpmpopt*):

rpm     alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \
        --pipe "sort -r -n | sed 's,^[0-9]\+ ,,' | awk '{printf(\"%-45s %-s\n\", $1, substr($0,length($1)+2))}' " \
        --POPTdesc=$"list package(s) by install time, most recent first"

--qf is already used up here, rpm can't somehow "combine together" two different queryformats in the same commandline.

Note You need to log in before you can comment on or make changes to this bug.