-
Pl
chevron_right
Sam Thursfield: dnf uninstall
news.movim.eu / PlanetGnome • 29 June
I am a long time user of the Fedora operating system. It’s very good quality, with a lot of funding from Red Hat (who use it to crowd-source testing for their commercial product Red Hat Enterprise Linux).
On Fedora you use a command named
dnf
to install and remove packages. The absolute worst design decision of Fedora is this:
-
To install a package:
dnf install
-
To uninstall a package:
dnf remove
If I had a dollar for every time I typed
dnf uninstall foo
and got an error then I’d be able to stage a lavish wedding in Venice by now.
As a Nushell user, I finally spent 5 minutes to fix this forever by adding the following to my
~/.config/nushell/config.nu
file:
def "dnf uninstall" […packages: string] {
dnf remove …$packages
}
(I also read online about a
dnf alias
command that might solve this, but it isn’t available for me for whatever reason).
That’s all for today!