Ask Your Question
3

Listing packages to be removed with dnf list --autoremove

asked 2018-09-29 09:45:20 -0500

ladlelord gravatar image

updated 2018-09-29 11:38:28 -0500

I'm trying to list all the packages that will be removed using autoremove. However, when I try to list the package totem with --autoremove, I get the following output:

$ dnf list --autoremove totem
Error: No matching Packages to list

totem is installed on my system:

$ rpm -qa | grep totem
totem-nautilus-3.26.2-1.fc28.x86_64
totem-pl-parser-3.26.1-1.fc28.x86_64
totem-3.26.2-1.fc28.x86_64

totem also shows up in dnf list totem:

$ dnf list totem
Last metadata expiration check: 0:19:39 ago on Sat 29 Sep 2018 10:34:58 AM EDT.
Installed Packages
totem.x86_64                 1:3.26.2-1.fc28                     @updates
Available Packages
totem.i686                   1:3.26.2-1.fc28                     updates

Am I misunderstanding how dnf list --autoremove works? Or is this a bug?

My expectation is for dnf list --autoremove to list the 'leaf' packages and dependencies that were automatically installed when totem was installed (or any package for that matter).

edit retag flag offensive close merge delete

Comments

1

What did you expect dnf list --autoremove totem to show?

villykruse gravatar imagevillykruse ( 2018-09-29 10:47:20 -0500 )edit

I expected it to show the leaf packages that were installed along with totem.

ladlelord gravatar imageladlelord ( 2018-09-29 10:54:34 -0500 )edit
1

What you're trying doesn't work because there's no package named totem. Try using totem* instead.

sideburns gravatar imagesideburns ( 2018-09-29 11:51:39 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2018-09-29 12:23:04 -0500

villykruse gravatar image

For what you want to do, you should run dnf remove totem and cancel the operation at the y/n question. That would show you what would be removed together with totem itself. Asking for dnf list --autoremove totem only shows the status of the package totem itself, and as it is user-installed, it would not be a candidate for being autoremoved, and thus not listed.

edit flag offensive delete link more

Comments

1

The easiest and safest way to do that is dnf remove -n totem as that assumes that all y/n questions are answered n. That way, you can't accidentally remove the program.

sideburns gravatar imagesideburns ( 2018-09-29 13:21:00 -0500 )edit
2

in dnf, that option is --assumeno, -n doesn't work. [1]

florian gravatar imageflorian ( 2018-09-29 21:52:49 -0500 )edit

Ah, so dnf remove automatically takes care of leaf packages and unused dependencies?

ladlelord gravatar imageladlelord ( 2018-09-30 11:59:14 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-09-29 09:45:20 -0500

Seen: 118 times

Last updated: Sep 29 '18