Description of problem: All packages installed with gnome software get removed upon 'dnf autoremove'. Version-Release number of selected components: dnf version: 1.0.1-2.fc22 gnome-software version: 3.16.4-1.fc22 Steps to Reproduce: 1. Install something using gnome software 2. Perform 'dnf autoremove' Actual results: 'dnf autoremove' wants to delete the installed package. Expected results: 'dnf autoremove' does not touch the installed package.
Sorry, it is probably a bug in dnf and not in gnome-software, but I can't change it.
I am seeing this with regular removes as well. I installed cockpit and then tried to uninstall it via 'dnf remove' and it tried to uninstall selinux-policy and selinux-policy-targeted which I am pretty sure is pretty important. @Steven, are you sure its a bug in dnf and not gnome-software being weird and marking packages as "autoinstalled"? I can imagine gnome-software installing packages as autoinstalled and then whenever dnf checks for packages that aren't depended on anymore, it picks out those.
This bug should really be rated high severity. Autoremoving important system packages is a big deal.
No I'm not sure, it could be both. Other people were also experiencing issues with dnf autoremove in other cases but these issues should have been patched. That why I was not sure. I also realize now that it should be rated with a high severity but I can't change it anymore.
I ran into a similar problem and none of it had to to do with gnome-software. I was trying to remove munin and it wanted to uninstall a bunch of packages, the perl ones I didn't mind as I only installed them with munin but it also wanted to uninstall packages I used, I even tried using -x to exclude them from the transaction but it didn't work. I finally had to use yum instead.
Created attachment 1074463 [details] dnf autoremove log dnf autoremove is insisting on removing user-installed packages by itself. Please see the log.
@Richard and @Sudhir Did you guys happen to run a offline update by any chance? Like when you select Install pending software updates during shutdown? That uses a similar mechanism to gnome-software to install and causes the same issues.
No, I pretty much exclusively use CLI tools for updating.
I rarely use software update applet but I might have used it to update my system a few times.
I'm seeing this (or very similar badness) in f23/plasma too using it's own PackageKit clients, humorously, $ sudo dnf autoremove Error: The operation would result in removing the booted kernel: kernel-core-4.2.6-300.fc23.x86_64.
*** This bug has been marked as a duplicate of bug 1259865 ***