<br><br><div><span class="gmail_quote">On 3/6/06, <b class="gmail_sendername">David Timms</b> <<a href="mailto:dtimms@bigpond.net.au">dtimms@bigpond.net.au</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've tried to find a way to clean up all the old headers and downloaded<br>RPMs that accumulate in /var/cache/yum<br><br>There is a yum clean all:<br>CLEAN OPTIONS<br>The following are the ways which you can invoke yum in clean mode. Note
<br>that  "all  files"  in the commands below means "all files in currently<br>enabled repositories".  If you want to  also  clean  any  (temporarily)<br>disabled repositories you need to use --enablerepo='*' option.
<br><br>yum clean packages<br>Eliminate  any cached packages from the system.  Note that pack-<br>ages are not automatically deleted after they are downloaded.<br><br>yum clean headers<br>Eliminate all of the header files which yum uses for  dependency
<br>resolution.<br>yum clean all<br>Runs yum clean packages and yum clean headers as above.<br><br>Notice that this says "all" or "any" in the descriptions; this is<br>definitely not what I want to happen.
<br><br>What I want is to erase (the thousands of) superseded header files that<br>are no longer current, leaving with only the current headers from repo,<br>and also delete the superseded rpm files (probably another 1000-2000
<br>files and 1.5 to 2 GB of data), ie if the rpm is not in the current repo<br>file list, then delete it for each repo.<br><br>I also installed yum-utils, but the tools I noticed (yum....) don't seem<br>to fit the requirement either.
<br><br>Any know how to do this ?<br><br>Thanks, DaveT.<br><br>--<br>fedora-test-list mailing list<br><a href="mailto:fedora-test-list@redhat.com">fedora-test-list@redhat.com</a><br>To unsubscribe:<br><a href="https://www.redhat.com/mailman/listinfo/fedora-test-list">
https://www.redhat.com/mailman/listinfo/fedora-test-list</a><br></blockquote></div><br>I don't think you can have your cake and eat it to. <br><br>It takes like 10-30 seconds to get all the header files if you start over, I don't think your going to find away to exclude/keep only certian header/rpm's unless you manually go through it.
<br><br>Besides, if you only want to keep what is current on the server, what would is it you want to accomplish with that?  Packages are already installed, so you don't really need them lying around, if it is because your running rawhide and might need to fall back, than keep the packages for a few and blow everything out.
<br>