Ticket #807 (closed defect: wontfix)

Opened 1 year ago

Last modified 1 year ago

rpm -queryformat does not recognize INSTALLPREFIX tag anymore

Reported by: stevench2000 Assigned to: RpmTickets
Priority: major Milestone:
Component: rpm Version: RPM Development
Keywords: Cc:

Description (Last modified by pmatilai)

Hi, recently we discovered this problem with the RPM utility version 4.8.0 (standard version shipped in RHEL6):

# rpm -q gcc --qf="%{INSTALLPREFIX}\n"
error: incorrect format: unknown tag
# rpm --version
RPM version 4.8.0

Where for older version of RPM, the tag is usable.

# rpm -q gcc --qf="%{INSTALLPREFIX}\n"
(none)
# rpm --version
RPM version 4.4.2

Is this a regression or the support of INSTALLPREFIX has been removed/replaced? Thanks for any helps in advance.

Change History

11/29/10 10:24:38 changed by pmatilai

  • status changed from new to closed.
  • resolution set to wontfix.
  • description changed.

(edited the description a bit for nicer formatting)

INSTALLPREFIX is indeed gone for all practical purposes, it was a deprecated backwards compatibility thing in rpm 2.x already. All packages readable with rpm 4.x have the relocation data in PREFIXES and INSTPREFIXES array tags to support more than one prefix per package.

Just replace %{INSTALLPREFIX} uses with %{INSTPREFIXES} (or "[%{INSTPREFIXES}\n]" to see all of them if more than one exists), that works for all rpm versions from the last decade and more.