Bug 1262878 - dnf --exclude doesn't work for local installed package
Summary: dnf --exclude doesn't work for local installed package
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 24
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Jaroslav Mracek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-14 14:17 UTC by Alexander Todorov
Modified: 2016-10-04 18:07 UTC (History)
9 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2016-07-21 08:53:26 UTC


Attachments (Terms of Use)

Description Alexander Todorov 2015-09-14 14:17:16 UTC
Description of problem:

# dnf install --allowerasing ./b/BEDTools-2.24.0-5.fc23.x86_64.rpm  -y --exclude="BEDTools"
Last metadata expiration check performed 2:06:59 ago on Mon Sep 14 08:07:37 2015.
Dependencies resolved.
============================================================================================================================================================================
 Package                                Arch                                 Version                                       Repository                                  Size
============================================================================================================================================================================
Installing:
 BEDTools                               x86_64                               2.24.0-5.fc23                                 @commandline                               5.8 M

Transaction Summary
============================================================================================================================================================================
Install  1 Package

Total size: 5.8 M
Installed size: 11 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction check error:
  file /usr/bin from install of BEDTools-2.24.0-5.fc23.x86_64 conflicts with file from package filesystem-3.2-34.fc23.x86_64

Error Summary
-------------

dnf-1.1.0-2.fc23.noarch



Related or possible duplicate of bug #1254005.

Comment 1 Radek Holy 2015-09-15 09:07:30 UTC
Just out of curiosity. What is the use case of such command?

Comment 2 Alexander Todorov 2015-09-16 10:20:37 UTC
OK, my intial command was a bit different, something like 

# dnf install --allowerasing ./b/*.x86_64.rpm  -y --exclude="BEDTools"


but BEDTools was still getting pulled in. So to figure out if something else is pulling it as a dependency or dnf is misbehaving I've devised the above command. My expectation was it will abort b/c no packages were specified as yum does.

Comment 3 Jan Kurik 2016-02-24 15:46:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 4 Jaroslav Mracek 2016-04-14 13:39:32 UTC
I have created a pull-request: https://github.com/rpm-software-management/dnf/pull/469

Comment 5 Igor Gnatenko 2016-07-21 08:53:26 UTC
PR has been merged, so will be part of DNF 2.0


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