RPM installed but unowned files and dirs
Hans de Goede
j.w.r.degoede at hhs.nl
Thu Mar 24 20:37:33 UTC 2005
Hi,
After upgrading from RedHat -> test -> rawhide -> RedHat -> test -> test
-> rawhide -> FC -> test ->rawhide -> fc -> etc.
My system has become a bit of a mess, so I decided todo a rpm -qf on
every file and dir and grep for " not owned by any package"
Which resulted in a shocking 6000 hits!
So I decided to write a script which undertook the task of cleaning all
this mess for me in the true unix spirit. This script has been attached
for you're reading and (ab)using pleasure.
Be warned no guarantees what soever, this might eat your HD etc. This
script is only intented for people who have everything except files
under /home managed by RPM if you have manually installed software it
will NUKE this including software installed under /usr/local !
If you take a look at the script you'll see that the find for removing
files contains quite a lott of excludes, these I believe are all
packaging bugs!
Also the script ends by generating a list of dirs which after the
cleanup are not owned by any package, see attachment 2.
I've already entered some of these in bugzilla but gave up when I saw
how many there are, should I enter these in bugzilla?
Regards,
Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpmclean.sh
Type: application/x-sh
Size: 1926 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20050324/7eb3766b/attachment-0002.sh
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rpmclean.unowned-dirs
Url: http://lists.fedoraproject.org/pipermail/devel/attachments/20050324/7eb3766b/attachment-0002.pl
More information about the devel
mailing list