Bug 1052020 - "dnf clean all" should clean everything
Summary: "dnf clean all" should clean everything
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-13 06:29 UTC by Miroslav Suchý
Modified: 2014-01-15 16:14 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-13 07:09:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miroslav Suchý 2014-01-13 06:29:44 UTC
Description of problem:
Dnf clean all
dnf clean metadata, should clean *all* data. Not just currently enabled repository.

This was twice rejected for yum (see bug 160171, bug 693242) but let corre^H^H^ redefine this behaviour in dnf.

See this thread for more discussion:
https://lists.fedoraproject.org/pipermail/devel/2014-January/193780.html

Comment 1 Ales Kozumplik 2014-01-13 06:31:47 UTC
maybe. we'll think on it.

Comment 2 Ales Kozumplik 2014-01-13 07:08:38 UTC
hmm the drawback of this is that it would be the first (sub)command to implicitly manipulate the enabled/disabled repos.

Comment 3 Miroslav Suchý 2014-01-13 08:50:51 UTC
And why it is should be bad? And why it should work from top down. E.g. when you want to delete database in SQL world, you do not delete individual records, but you do DATABASE TRUNCATE.

I.e. dnf clean all can take a shortcut and execute rm -rf /var/cache/dnf/

This is bug. Therefore it should not be NOTABUG but rather WONTFIX. But please rely reconsider.
I really think that current behaviour confuse people more then the proposed one. And proposed solution will save people several hundreds of MB on disk.

Comment 4 Jan Zeleny 2014-01-13 11:19:34 UTC
That is not necessarily true. We have already seen this on multiple occasions. Some people find the current behavior confusing and some people find anything new an unacceptable regression.

While the semantics of "clean all" as a phrase might be different than what happens, the behavior is clearly documented and man page without any doubt specifies that "clean all" means "perform all the cleanup actions described above".

Comment 5 Ben Boeckel 2014-01-15 05:29:33 UTC
What about "dnf clean ALL"?


Note You need to log in before you can comment on or make changes to this bug.