Describe the bug
After I remove a package via dnf remove or rpm --erase, some empty directories on left on disk
To Reproduce
Steps to reproduce the behavior:
podman run --pull=newer -it fedora:rawhide /bin/bash
dnf install -y koji
koji download-build -a $(uname -m) dotnet9.0-9.0.106-1.fc43
dnf install *rpm
rpm --erase $(rpm -qa '*dotnet*' 'aspnetcore*' 'netstandard*')
find /usr/lib64/dotnet/
Expected behavior
No files should have been left on disk. The output of find should be an error about that path not existing.
Output
# find /usr/lib64/dotnet/
/usr/lib64/dotnet/
/usr/lib64/dotnet/packs
Environment
- OS / Distribution: Fedora Rawhide
- Version: RPM version 5.99.90
Additional context
This is the package: https://src.fedoraproject.org/rpms/dotnet9.0/c/c2c2d69fb0381a0dc987c86d9a2d0f902b302918?branch=rawhide
I built this exact commit on all Fedora branches. This issue of stale files left on disk after package is uninstalled only happened on Fedora Rawhide, not on 42 or 41. The order or number of uninstalling the package might matter: I removed the subpackages that own /usr/lib64/dotnet/packs one-by-one, and when I uninstalled dotnet-apphost-pack-9.0 last, the directory got removed correctly.
Describe the bug
After I remove a package via
dnf removeorrpm --erase, some empty directories on left on diskTo Reproduce
Steps to reproduce the behavior:
podman run --pull=newer -it fedora:rawhide /bin/bashdnf install -y kojikoji download-build -a $(uname -m) dotnet9.0-9.0.106-1.fc43dnf install *rpmrpm --erase $(rpm -qa '*dotnet*' 'aspnetcore*' 'netstandard*')find /usr/lib64/dotnet/Expected behavior
No files should have been left on disk. The output of
findshould be an error about that path not existing.Output
Environment
Additional context
This is the package: https://src.fedoraproject.org/rpms/dotnet9.0/c/c2c2d69fb0381a0dc987c86d9a2d0f902b302918?branch=rawhide
I built this exact commit on all Fedora branches. This issue of stale files left on disk after package is uninstalled only happened on Fedora Rawhide, not on 42 or 41. The order or number of uninstalling the package might matter: I removed the subpackages that own
/usr/lib64/dotnet/packsone-by-one, and when I uninstalleddotnet-apphost-pack-9.0last, the directory got removed correctly.