Bug 1203699 - installonly packages over installonly_limit should be removed only when transaction already contains them
Summary: installonly packages over installonly_limit should be removed only when trans...
Keywords:
Status: CLOSED DUPLICATE of bug 1160011
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-19 13:35 UTC by Michael Mráka
Modified: 2015-07-21 11:33 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-21 11:33:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael Mráka 2015-03-19 13:35:14 UTC
Description of problem:
dnf tries to remove installonly packages over installonly_limit during a completely irrelevant transaction.

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

How reproducible:
always

Steps to Reproduce:
1. install more than 3 versions of kernel (or set installonly_limit to one less than number of your installed kernels)
2. dnf update dnf

Actual results:
# dnf update dnf
Using metadata from Thu Mar 19 01:12:46 2015
Dependencies resolved.
==========================================================================================================
 Package                     Arch                Version                       Repository            Size
==========================================================================================================
Removing:
 kernel                      x86_64              3.17.4-301.fc21               @System                0  
 kernel-core                 x86_64              3.17.4-301.fc21               @System               40 M
 kernel-modules              x86_64              3.17.4-301.fc21               @System               17 M

Transaction Summary
==========================================================================================================
Remove  3 Packages

Installed size: 57 M
Is this ok [y/N]: 


Expected results:
# dnf update dnf
Using metadata from Thu Mar 19 01:12:46 2015
Error: No packages marked for upgrade.


Additional info:
The same behaviour observed for clean_requirements_on_remove set to both true and false.
At least clean_requirements_on_remove=false shouldn't do it.

Comment 1 Honza Silhan 2015-07-21 11:33:56 UTC

*** This bug has been marked as a duplicate of bug 1160011 ***


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