Bug 1226172 - dnf remove $(dnf repoquery --installonly --latest-limit -3 -q) only removes the kernel package
Summary: dnf remove $(dnf repoquery --installonly --latest-limit -3 -q) only removes t...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-29 06:34 UTC by hannes
Modified: 2016-07-19 14:21 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 14:21:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1249073 0 medium CLOSED dnf repoquery does not support wildcards in --whatrequires 2021-02-22 00:41:40 UTC

Internal Links: 1249073

Description hannes 2015-05-29 06:34:03 UTC
Description of problem:
I upgraded to fedora 22 from f21, so I had some f21 kernels left and wanted to get rid of them. So I checked the replacement for the package-cleanup command in dnf, which is the following:
dnf remove $(dnf repoquery --installonly --latest-limit -3 -q)
The issue with this is, that it only removes the kernel package and not all other kernel related packages, like -core, -devel etc.
I had to manually remove those packages for the old kernel packages afterwards.

Version-Release number of selected component (if applicable):
dnf-1.0.0-1.fc22.noarch


How reproducible:
always - had to do it for two older kernels



Actual results:
only the kernel package was removed

Expected results:
remove the kernel package and all subpackages as well.

Comment 1 Honza Silhan 2015-07-24 09:06:37 UTC
Thanks for the report. We'll take a look.

Comment 2 Fedora Admin XMLRPC Client 2016-07-08 09:32:24 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Fedora End Of Life 2016-07-19 14:21:12 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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