Bug 1830811

Summary: Package dependencies marked as userinstalled
Product: [Fedora] Fedora Reporter: jordan fatus <jorofts>
Component: PackageKitAssignee: Richard Hughes <rhughes>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: gnome-sig, hujq, ian.s.mcinerney, jonathan, klember, n.fabritius, rdieter, rhughes, smparrish
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-08 00:44:55 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 jordan fatus 2020-05-03 23:47:26 UTC
Description of problem:
When a rpm package is installed through gnome-software, its dependencies are wrongly marked as userinstalled.
This prevents the dependencies from being removed when uninstalling the package later.

Version-Release number of selected component (if applicable):
gnome-software-3.36.0-1.fc32

How reproducible: Always

Steps to Reproduce:

1. Use gnome-software to install an app that pulls dependencies in (example: keepass, which requires mono)
2. Check the list of user installed packages : dnf repoquery --userinstalled

Actual results:
The list of user installed packages contains the installed app along with its dependencies.

Expected results:
The list of user installed packages should contain the installed app, not its dependencies.

Additional info:
Now when uninstalling the app, the dependencies won't be removed. Even with dnf autoremove.

Comment 1 jordan fatus 2020-11-22 18:57:25 UTC
Same bug on a fresh fedora 33 install.

1. Count userinstalled packages :
> $ dnf repoquery --userinstalled |wc -l
> 13

2. Install scribus (for example) from gnome-software

3. Count userinstalled packages :
> $ dnf repoquery --userinstalled |wc -l
> 25
This should be 14.

Comment 2 n.fabritius 2021-03-25 14:15:41 UTC
This also affects Fedora 34 Beta as well.

The bug is triggered multiple times when installing updates via gnome-software. Depending on the number of updates, the impact on the list of user installed packages can be significant and requires a lot of cleanup work with dnf mark remove.

Comment 3 Fedora Admin user for bugzilla script actions 2021-04-29 12:18:59 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 4 Ian McInerney 2021-05-02 18:57:15 UTC
Reported upstream in https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1238

Comment 5 Milan Crha 2021-05-03 08:29:40 UTC
Packages are installed through PackageKit. I do not see any API in the PkTask to define whether the packages should be installed as a user or system, the less anything about the dependencies. I'm moving this to the PackageKit for further investigation.

Comment 6 Ben Cotton 2022-05-12 16:27:38 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 7 Ben Cotton 2022-06-08 00:44:55 UTC
Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07.

Fedora Linux 34 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.

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