Ask Your Question

fedora 24: "dnf remove dnsmasq" == "dnf remove fedora 24"

asked 2016-11-18 19:36:06 -0500

lovepump gravatar image

Is there a way to have dnf remove just a package without also removing that package's dependencies?

"sudo dnf remove dnsmasq" wants to remove, among many others: NetworkManager-"everything" anaconda-"everything" libblockdev-"everything"

An additional question might be: How can I tell what dnf actually added when I issued the command: "sudo dnf install dnsmasq". Yes, I can pay attention and write everything down, but why doesn't dnf know what dependencies it installed to get a package on-board in order to remove the same package?


edit retag flag offensive close merge delete


dnf functionality: connect to remote repos in order to download packages, resolve dependencies and hence download them too,install packages through rpm. If you really want to do any sort of nasty things use rpm directly (--nodeps, --force)

fcomida gravatar imagefcomida ( 2016-11-19 06:27:01 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-11-20 12:25:37 -0500

beduine gravatar image

You can use dnf history to show, what was installed/removed/updated.

edit flag offensive delete link more


Thanks beduine - this is what I was after, although not as optimal as sitting on my ass and letting it happen :)

lovepump gravatar imagelovepump ( 2016-12-03 22:45:50 -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


Asked: 2016-11-18 19:36:06 -0500

Seen: 190 times

Last updated: Nov 20 '16