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 5270 - RFE: %pre(un) and %post(un) scripts should know what files were installed
RFE: %pre(un) and %post(un) scripts should know what files were installed
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 1999-09-21 10:55 EDT by Tim Mooney
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-09-21 10:55:07 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 Tim Mooney 1999-09-21 10:55:07 EDT
Currently, there's no way to get a list of what files
were installed (full paths preferred, since the person
running rpm may relocate the package in many cases) from
a %pre or %post, and ditto for files removed in a %preun
%postun.  This information would often be extremely useful
to have.
Comment 1 Jeff Johnson 2002-07-13 16:04:07 EDT
rpm-4.1 permits concurrent access to the rpm
database, so the list of files can be gleaned
by doing, say,
	FILES="`rpm -ql %{name}-%{version}-%{release}`"
Watch out for multiply installed pacakges however ...

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