Ask Your Question
0

yum autoremove wants to remove packages that I just installed intentionally using gnome-software. Why?

asked 2015-06-21 18:13:17 -0600

florian gravatar image

updated 2015-06-23 23:30:02 -0600

mether gravatar image

When running sudo yum autoremove yum suggests to remove a bunch of packages. Among these packages there are quite a few that I recently installed using gnome-software.

Why does yum think that they are obsolete? How can I tell yum to remove only unneeded packages? Does yum not know when I add software using a different tool?

EDIT: Surprisingly, packages like fedup, iwlxyz-firmware, and iwlwxyz-firmware are also among the ones to be removed.

dnf autoremove behaves correctly and doesn't try to remove anything...

Is this a bug?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
3

answered 2015-06-23 09:06:18 -0600

No, this is not a bug. from the manpage:

autoremove

          With  one  or more arguments this command works like running the "remove" command with the  lean_requirements_on_remove turned on. However
          you can also specify no arguments, at which point it tries to remove any packages that weren't installed explicitly by the user and  which
          aren't required by anything (so called leaf packages).

Packages that you install with gnome-software are not packages that you have explicitly installed with yum. They don't use the same transaction database.

edit flag offensive delete link more

Comments

Thanks for clarification. I should stay completely away from gnome-software.

florian gravatar imageflorian ( 2015-06-23 09:16:48 -0600 )edit

In the future, will DNF and gnome-software share the same database or understand the others transactions?

florian gravatar imageflorian ( 2015-06-23 09:18:20 -0600 )edit
1

gnome-software and dnf use the same libraries for calculating dependencies and such, but gnome-software uses an abstraction layer called PackageKit. This allows gnome-software to be more easily used on other systems with different repository management solutions - it can work on Fedora, CentOS, Ubuntu, whatever because PackageKit knows about the underlying repos.

PackageKit does keep a transaction history, and iirc you can operate it, but I don't have those bits on this system and can't find the info offhand.

randomuser gravatar imagerandomuser ( 2015-06-23 12:34:46 -0600 )edit
1

answered 2015-06-21 19:27:17 -0600

masteroman gravatar image

As far as I know dnf has similar bug and my best guess is that yum has it too :-) On the other hand, yum is deprecated and everybody is encouraged to switch to dnf.

P.S. I believe that bugzilla page offers some explanations on the issue.

edit flag offensive delete link more

Comments

Thanks for your answer. I am going to research this bug filed. Since I am still running F21 I am trying to stick with yum and not dnf where yum has not been replaced by dnf yet

florian gravatar imageflorian ( 2015-06-21 21:26:44 -0600 )edit

Didn't noticed that tag f21 up until now. My bad :-)

masteroman gravatar imagemasteroman ( 2015-06-21 23:45:01 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-06-21 18:13:17 -0600

Seen: 1,739 times

Last updated: Jun 23 '15