Thanks for the script, for those of you running it on spacewalk you need to change RHNSAT to SPACEWALK in the select statement. <div>I've been using the update-packages script (which required a bit of hacking to get working) to find packages that are in the db but not the file system</div>
<div><br></div><div>-N<br><br><div class="gmail_quote">On Mon, Nov 15, 2010 at 5:45 PM, Alan Evans <span dir="ltr"><<a href="mailto:alanwevans@gmail.com">alanwevans@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I posted to the list a few weeks ago about a tool to check /var/satellite for packages that are not listed in the database and was told no such tool existed.  So... I wrote one.<br><br>My concern was that my company's RHN Satellite has been through more than a few upgrades, including some major upgrades like 4 -> 5 and has been through the removal of bunches of custom and Red Hat base channels alike.  In my experience any time a database contains a list of files on a filesystem the two will inevitably get out of sync somehow.<br>

<br>Satellite-sync does a great job of making sure what's in the database has a counterpart on the filesystem so this is not a problem.  However the reverse seems not to have been considered.<br><br>Using my script I was able to indeed find that there were about 90 files in /var/satellite that were no represented in the RHN database.  Ok so 90 files out of 56,000 is not exactly something to get too overly worked up about but before running my script I had no way to know.  My last RHN Satellite upgrade involved moving Satellite to new hardware between datacenters so the less I had to rsync the better.<br>

<br>In any event, I have attached my script in case it might be of use to anyone else.  If it looks good perhaps it would make a good addition to the contrib directory.<br><br>Regards,<br><font color="#888888">-Alan<br>
</font><br>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div><br></div>