From ee86f1a627d805c5fd035172f29e866508d2f0bf Mon Sep 17 00:00:00 2001 From: George Machitidze Date: Sun, 19 Jan 2014 20:54:11 -0800 Subject: [PATCH 1/3] Create dnf plugin Adds some useful aliases --- plugins/dnf/dnf.plugin.zsh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 plugins/dnf/dnf.plugin.zsh diff --git a/plugins/dnf/dnf.plugin.zsh b/plugins/dnf/dnf.plugin.zsh new file mode 100644 index 00000000..9a6abef4 --- /dev/null +++ b/plugins/dnf/dnf.plugin.zsh @@ -0,0 +1,15 @@ +## Aliases + +alias dnfl="dnf list" # List packages +alias dnfli="dnf list installed" # List installed packages +alias dnfgl="dnf grouplist" # List package groups +alias dnfmc="dnf makecache" # Generate metadata cache +alias dnfp="dnf info" # Show package information +alias dnfs="dnf search" # Search package + +alias dnfu="sudo dnf update" # Upgrade package +alias dnfi="sudo dnf install" # Install package +alias dnfgi="sudo dnf groupinstall" # Install package group +alias dnfr="sudo dnf erase" # Remove package +alias dnfgr="sudo dnf groupremove" # Remove package group +alias dnfc="sudo dnf clean all" # Clean cache From c0b12523feb43a81dbf970054eb69b5c60626936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Thu, 11 Feb 2016 21:38:10 +0100 Subject: [PATCH 2/3] Fix deprecated dnf commands Update -> upgrade Erase -> remove --- plugins/dnf/dnf.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dnf/dnf.plugin.zsh b/plugins/dnf/dnf.plugin.zsh index 9a6abef4..653ce7dd 100644 --- a/plugins/dnf/dnf.plugin.zsh +++ b/plugins/dnf/dnf.plugin.zsh @@ -7,9 +7,9 @@ alias dnfmc="dnf makecache" # Generate metadata cache alias dnfp="dnf info" # Show package information alias dnfs="dnf search" # Search package -alias dnfu="sudo dnf update" # Upgrade package +alias dnfu="sudo dnf upgrade" # Upgrade package alias dnfi="sudo dnf install" # Install package alias dnfgi="sudo dnf groupinstall" # Install package group -alias dnfr="sudo dnf erase" # Remove package +alias dnfr="sudo dnf remove" # Remove package alias dnfgr="sudo dnf groupremove" # Remove package group alias dnfc="sudo dnf clean all" # Clean cache From 624518054b9aa52bf81f9813f33d08985efe4a78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Thu, 11 Feb 2016 21:38:40 +0100 Subject: [PATCH 3/3] Add README to dnf plugin --- plugins/dnf/README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 plugins/dnf/README.md diff --git a/plugins/dnf/README.md b/plugins/dnf/README.md new file mode 100755 index 00000000..f9ef496f --- /dev/null +++ b/plugins/dnf/README.md @@ -0,0 +1,25 @@ +## Description + +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`. + +## Aliases + +| Alias | Command | Description | +|-------|-------------------------|--------------------------| +| dnfl | `dnf list` | List packages | +| dnfli | `dnf list installed` | List installed packages | +| dnfgl | `dnf grouplist` | List package groups | +| dnfmc | `dnf makecache` | Generate metadata cache | +| dnfp | `dnf info` | Show package information | +| dnfs | `dnf search` | Search package | +| **Use `sudo`** | +| dnfu | `sudo dnf upgrade` | Upgrade package | +| dnfi | `sudo dnf install` | Install package | +| dnfgi | `sudo dnf groupinstall` | Install package group | +| dnfr | `sudo dnf remove` | Remove package | +| dnfgr | `sudo dnf groupremove` | Remove package group | +| dnfc | `sudo dnf clean all` | Clean cache |