Bug 1229463 - dnf needs an option to mark a package as "user-installed"
Summary: dnf needs an option to mark a package as "user-installed"
Keywords:
Status: CLOSED DUPLICATE of bug 1125925
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-06-08 20:41 UTC by Jason Montleon
Modified: 2015-06-09 07:19 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-06-09 07:19:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jason Montleon 2015-06-08 20:41:51 UTC
Description of problem:
I installed quicksynergy, which installed synergy and a couple other dependencies. Now I want to remove quicksynergy but leave synergy. I should have to resort to uninstalling all the packages then reinstalling synergy, yet there seems no way to temporarily disable these options so I'm left either running multiple dnf commands or using rpm.

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

How reproducible:
Always

Steps to Reproduce:
1. Install quicksynergy
2. Decide you don't need quicksynergy, just synergy
3. Try to uninstall quicksynergy with just one command?

Actual results:
I couldn't find a way

Expected results:
Is there an easy way to do this? If there is can it be better documented? If not shouldn't there be a way

Additional info:

Comment 1 Radek Holy 2015-06-09 07:15:08 UTC
Hello, the "easy" way is "dnf --setopt=clean_requirements_on_remove=False remove quicksynergy".

On the other hand, it does not solve your problem. Next time you request removal of another package that requires "synergy" or next time you run "dnf autoremove", DNF would like to remove "synergy" again because it's marked as a dependency and no installed package requires it.

So, what you really need is to mark "synergy" as "user-installed". If I did not miss a recent patch, there is no (documented) way how to achieve that with DNF. But we've already discussed it somewhere. I'll check whether there is a duplicate of this bug already.

Comment 2 Radek Holy 2015-06-09 07:19:08 UTC

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


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