[Yum-devel] New plugin: clean-obsolete

Darwin Slattery djslattery at users.sourceforge.net
Thu Nov 13 16:51:22 UTC 2008


Thanks for your suggestions. I have responded to them below.

The latest version of the plugin can be found here:
http://www.hyperdrifter.com/software/system/cleaning_old_rpm_packages_from_a_yum_cache.html

Darwin


Florian Festi wrote:
> Darwin Slattery wrote:
>> ... which deletes obsolete RPM package files from the cache directories...
> 
>> All comments and suggestions are welcome.
> 
> "Obsolete" is already used in a different meaning in the context of yum and 
> rpm. Obsolete packages are packages that are replaced by a packages with an 
> different name (see "Obsoletes" rpm tag).
> 
> So I would suggest to use a different term - may be "outdated" - to signal 
> that your plugin doesn't have something to do with obsoletes in the rpm sense.

I have renamed it clean-oldpackages as this is the term used in the 
documentation relating to downgrading to an older version of a RPM 
package. I considered using "outdated" as you suggested but decided it 
best not to introduce another term. The documentation for the plugin has 
also been cleaned up to reduce confusion on this issue.

> 
> "yum clean plugin" does also not really say what it actually happening. "yum 
> clean outdated" or "yum clean oldpkgs" would be more descriptive.
> 
I agree. I am looking into this but currently I cannot see any way of 
adding another keyword after the clean command-line option. YUM seems to 
have a fixed set of keywords it looks for before deciding which group of 
plugins to execute. It's the best that can be done currently.

> Florian
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel
> 


More information about the Yum-devel mailing list