Re: dnf-0.4.11

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14. 1. 2014 at 23:21:15, Peter Oliver wrote:
> On Mon, 13 Jan 2014, Miroslav Suchý wrote:
> > On 01/13/2014 09:57 AM, Frank Murphy wrote:
> >> On Mon, 13 Jan 2014 09:53:53 +0100
> >> 
> >> Miroslav Suchý <msuchy@xxxxxxxxxx> wrote:
> >>> On 01/13/2014 08:56 AM, Frank Murphy wrote:
> >>>> to be certain you can do "dnf(yum) --enablerepo=* clean all"
> >>>> if your intention is truly to remove all cache.
> >>> 
> >>> Not true if you ever used --releasever option.
> >> 
> >> dnf --enablerepo=* --releasever=* clean all ?
> > 
> > No. This command is accepted (to my surprise). But it delete nothing. And
> > just create new directory sturcture in '/var/cache/yum/x86_64/*'.
> 
> Is there, then, room for a new, "clean all-including-disabled" option,
> assuming someone could come up with a snappier name for it than that?

Quite frankly I don't think that's even doable in any other way than rm -rf 
/var/cache/dnf/*, as dnf can loose track of the old data when you use --
releasever, for example when you update your entire distro with it. 

The only way I can see this done is to implement a plugin that would be an 
alias to the "rm -rf" action. IIRC plugins can add their own subcommands too. 
If you think such a plugin is required or nice to have, I encourage you to 
write it, dnf's API is well documented for that. Then you can either propose 
it for inclusion to dnf core plugins or create a separated package with the 
plugin.

Thanks
Jan
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux