Back to Ohmyzsh

dnf plugin

plugins/dnf/README.md

latest1.3 KB
Original Source

dnf plugin

This plugin makes dnf usage easier by adding aliases for the most common commands.

dnf is the new package manager for RPM-based distributions, which replaces yum.

To use it, add dnf to the plugins array in your zshrc file:

zsh
plugins=(... dnf)

Classic dnf is getting superseded by dnf5; this plugin detects the presence of dnf5 and uses it as drop-in alternative to the slower dnf.

Aliases

AliasCommandDescription
dnfldnf listList packages
dnflidnf list installedList installed packages
dnfgldnf grouplistList package groups
dnfmcdnf makecacheGenerate metadata cache
dnfpdnf infoShow package information
dnfsdnf searchSearch package
Use sudo
dnfusudo dnf upgradeUpgrade package
dnfisudo dnf installInstall package
dnfgisudo dnf groupinstallInstall package group
dnfrsudo dnf removeRemove package
dnfgrsudo dnf groupremoveRemove package group
dnfcsudo dnf clean allClean cache