Empty directories no content for >= 6mths

Rejy M Cyriac rcyriac at redhat.com
Thu Feb 13 14:40:50 UTC 2014


On 02/13/2014 07:40 PM, Frank Murphy wrote:
> On Thu, 13 Feb 2014 22:00:10 +0800
> Ed Greshko <ed.greshko at greshko.com> wrote:
> 
>> find $HOME/ -mtime 180 -type d -empty  ??
>>
>> I don't see any files below a user's $HOME belonging to any
>> packages....  So, I don't really understand the objective.
>>
>>
> 
> I do a lot of testing,
> and have noticed there can be extras in
> despite pkgs owning files\folders
> 
> eg. yum install zikula
> ymu erase zikula
> updatedb
> ~$ locate zikula
> /etc/zikula
> /usr/share/zikula
> /usr/share/zikula/docs
> /usr/share/zikula/includes
> /usr/share/zikula/includes/classes
> /usr/share/zikula/includes/classes/SimplePie
> /usr/share/zikula/includes/classes/Smarty
> /usr/share/zikula/includes/classes/adodb
> /usr/share/zikula/includes/classes/php-gettext
> 
> your left with bits of zikula
> thats just one than come to mind.
> 

Since the package has been removed, the rpm -qf on those files will
return 'file <path> is not owned by any package', and so you could
probably remove those non-empty directories safely as well. But the
catch is that rpm -qf on user data directories/files will also give the
same output. So how would you distinguish between them ?

- Rejy (rmc)


More information about the users mailing list