b75b0b88823b6196fd18da8d9e7e16a1e014f14e
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #4333 from mbologna/fedora_plugin
Added fedora plugin, based on dnf/yum plugin
Diff
1diff --git a/plugins/fedora/README.md b/plugins/fedora/README.md
2new file mode 100644
3index 0000000000000000000000000000000000000000..f384b0ffdc3375b33da38af90f73257d82bd562a
4--- /dev/null
5+++ b/plugins/fedora/README.md
6@@ -0,0 +1,3 @@
7+This is a plugin based on yum plugin, but using dnf as main frontend
8+(from Fedora 22 onwards, yum is deprecated in favor of dnf).
9+
10diff --git a/plugins/fedora/fedora.plugin.zsh b/plugins/fedora/fedora.plugin.zsh
11new file mode 100644
12index 0000000000000000000000000000000000000000..eddc3627b11e10c9ca9dd01f2fdf45b4db21d62c
13--- /dev/null
14+++ b/plugins/fedora/fedora.plugin.zsh
15@@ -0,0 +1,16 @@
16+## Aliases
17+
18+alias dnfs="dnf search" # search package
19+alias dnfp="dnf info" # show package info
20+alias dnfl="dnf list" # list packages
21+alias dnfgl="dnf grouplist" # list package groups
22+alias dnfli="dnf list installed" # print all installed packages
23+alias dnfmc="dnf makecache" # rebuilds the dnf package list
24+
25+alias dnfu="sudo dnf upgrade" # upgrade packages
26+alias dnfi="sudo dnf install" # install package
27+alias dnfgi="sudo dnf groupinstall" # install package group
28+alias dnfr="sudo dnf remove" # remove package
29+alias dnfgr="sudo dnf groupremove" # remove pagage group
30+alias dnfrl="sudo dnf remove --remove-leaves" # remove package and leaves
31+alias dnfc="sudo dnf clean all" # clean cache