Re: [SLUG] Safe ? or not !

From: Ian Blenke (icblenke@nks.net)
Date: Thu Feb 05 2004 - 10:44:12 EST


Bob Stia wrote:
> On Wednesday 04 February 2004 11:40 am, Ian Blenke wrote:
>
>>Eben King wrote:
>>
>>>RPM is probably just trying to be tidy by removing directories,
>>>which will only succeed if they're empty.
>>
>>It's merely a warning, not an error.
>>
>>The upgrade script for whatever RPM you are installing is merely
>>checking to see if those directories are empty so that it might clean
>>up after itself. There are almost definitely OTHER packages installed
>>that do have files in those directories - you do NOT want to remove
>>them if you want those other packages to function properly.
>>
>
> Thanks for replying guys. Guess I will just leave them alone. There
> may or may not be extraneous files/packages that exist there and never
> to be used again, but how would one know for sure. Use up a little
> extra space on the HD. Oh well !!

Go into the directory in question and do an "rpm -q -f" on the file, ie:

for dir in /usr/share/themes /usr/lib/gtk/themes/engines
/usr/lib/gtk/themes /usr/lib/gtk-2.0/2.2.0/engines
/usr/lib/gtk-2.0/2.2.0 /usr/lib/gtk-2.0 /usr/lib/gtk ; do
for file in $dir/* ; do
  rpm -q -f "$file" ;
done ;
done | sort | uniq

After a bit of churning, this should give you a list of packages that
have files in those directories.

-- 
- Ian C. Blenke - Director of Service Delivery <icblenke@nks.net>
(This message bound by the following:
http://www.nks.net/email_disclaimer.html)
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:28:09 EDT