Computer Tips - Fedora: I installed a package with dnf and it pulled in lots of dependencies

Date: 2009nov23 Update: 2024dec7 OS: RedHat/Fedora/CentOS Q. Fedora: I installed a package with dnf and it pulled in lots of dependencies (which is fine). But now I want to remove the package and its dependencies. How do you do that? A. You can use dnf's history feature. Do:
dnf history list | head
to see a log of all installs. Note the number of the transaction you want to undo and enter:
dnf history undo <number>