Bug 2345 - Inappropriate "cannot remove DIR - directory not empty"
Inappropriate "cannot remove DIR - directory not empty"
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Jay Turner
Depends On:
  Show dependency treegraph
Reported: 1999-04-23 12:43 EDT by jamie
Modified: 2015-01-07 18:37 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-05-11 11:35:46 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 jamie 1999-04-23 12:43:43 EDT
I encounted this when upgrading from gimp-1.0.1-2.i386.rpm
to gimp-1.0.4-3.i386.rpm:

cannot remove /usr/lib/gimp - directory not empty

I get it from time to time with other packages too.
The message is inappropriate because /usr/lib/gimp is
actually used by the new package.  However it is not
explicitly listed by the package: the directory
/usr/lib/gimp/1.0 is listed, and /usr/lib/gimp is implied by

I suspect the previous version did have /usr/lib/gimp in the
directory list, hence the message.

Suggestion: Don't try to delete directories whose existence
is implied by other directories from another package.  One
way would be to add entries for those implied directories to
the database, with a flag to say they're implied.
Comment 1 Jeff Johnson 1999-05-11 11:35:59 EDT
Rpm cannot remove directories that are not empty while attempting to
remove a package. Furthermore, the bug is often in the already
released package so we cannot always repackage to work around
the problem.

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