Bug 1229463

Summary: dnf needs an option to mark a package as "user-installed"
Product: [Fedora] Fedora Reporter: Jason Montleon <jmontleo>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-09 07:19:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***