Bug 134650 - Uninstallation inconsistence (read-only filesystem)
Uninstallation inconsistence (read-only filesystem)
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2004-10-05 09:26 EDT by Lukas Jelinek
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-05 09:51:06 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 Lukas Jelinek 2004-10-05 09:26:15 EDT
From Bugzilla Helper:
User-Agent: Opera/7.50 (Windows NT 5.1; U)  [en]

Description of problem:
Situation description: /usr mounted read-only, other mount points 
mounted read/write, some package (e.g. mypkg.rpm) installed 
(somewhere in /usr/...).

If I try to uninstall mypkg.rpm (rpm -e mypkg.rpm), it finishes 
"successfully" (the package appears to be erased, rpm -q mypkg.rpm 
reports "not installed"), but package's files of course persist on 
the disk (mounted read-only).
I think this behavior is a bug. If the files cannot be removed, the 
uninstallation process should fail.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Have /usr on a separate filesystem mounted read/write.
2. Install a RPM package which installs its files under /usr.
3. Mount /usr as read-only (e.g. mount -o remount,ro /usr).
4. Try to uninstall this package.

Actual Results:  1. The "uninstalled" package appears to be erased.
2. Package's files are at their places under /usr.

Expected Results:  Uninstall will fail, reporting something like 
"Uninstall failed - cannot remove files placed on read-only 

Additional info:
Comment 1 Jeff Johnson 2004-10-05 09:51:06 EDT
rpm does "best effort" erasure, attempts, prints erro
in debugging spew, then continues.

"best effort" is the better approach because install/upgrade
are what people mostly use rpm for, not pure erasures.

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