On 2016-03-17 22:12, Bjoern Voigt wrote: ...
My box has 286 empty directories in /usr/lib64 (184 of them not owned by an RPM package) and 477 empty directories in /usr/lib (411 of them not owned by an RPM package).
If you want to scan your openSUSE system:
# find /usr/lib -type d -empty | wc -l # rpm -qf $(find /usr/lib -type d -empty)|grep "not owned"|wc -l
Very interesting! Telcontar:~ # find /usr/lib -type d -empty | wc -l 851 Telcontar:~ # rpm -qf $(find /usr/lib -type d -empty)|grep "not owned"|wc -l 783 Telcontar:~ # find /usr/lib64 -type d -empty | wc -l 373 Telcontar:~ # rpm -qf $(find /usr/lib64 -type d -empty)|grep "not owned"|wc -l 278 Telcontar:~ #
I am relatively sure, that most of the old empty directories are caused by removed/upgraded old RPM packages with missing "%dir" options for some directories.
But what is a good strategy here? I can manually check and delete the empty directories. And I can write a bug report for every single RPM package with missing "%dir" options. But this would be time-consuming.
I would prefer an automatic RPM check in build service for this. Is there something or something planned?
I can't comment on that, but how about a small script to purge those directories, and add it to the same wiki page? ;-) -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)