Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
1c55a0fe
Unverified
Commit
1c55a0fe
authored
Sep 21, 2023
by
Marcus Müller
Committed by
GitHub
Sep 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(dnf): use `dnf5` if available (#11904)
Co-authored-by:
Marcus Müller
<
marcus_ohmyzsh@baseband.digital
>
parent
1cc32be5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
12 deletions
+19
-12
README.md
plugins/dnf/README.md
+3
-0
dnf.plugin.zsh
plugins/dnf/dnf.plugin.zsh
+16
-12
No files found.
plugins/dnf/README.md
View file @
1c55a0fe
...
@@ -10,6 +10,9 @@ To use it, add `dnf` to the plugins array in your zshrc file:
...
@@ -10,6 +10,9 @@ To use it, add `dnf` to the plugins array in your zshrc file:
plugins
=(
... dnf
)
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
## Aliases
| Alias | Command | Description |
| Alias | Command | Description |
...
...
plugins/dnf/dnf.plugin.zsh
View file @
1c55a0fe
## Aliases
## Aliases
local
dnfprog
=
"dnf"
alias
dnfl
=
"dnf list"
# List packages
# Prefer dnf5 if installed
alias
dnfli
=
"dnf list installed"
# List installed packages
command
-v
dnf5
>
/dev/null
&&
dnfprog
=
dnf5
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 upgrade"
# Upgrade package
alias
dnfl
=
"
${
dnfprog
}
list"
# List packages
alias
dnfi
=
"sudo dnf install"
# Install package
alias
dnfli
=
"
${
dnfprog
}
list installed"
# List installed packages
alias
dnfgi
=
"sudo dnf groupinstall"
# Install package group
alias
dnfgl
=
"
${
dnfprog
}
grouplist"
# List package groups
alias
dnfr
=
"sudo dnf remove"
# Remove package
alias
dnfmc
=
"
${
dnfprog
}
makecache"
# Generate metadata cache
alias
dnfgr
=
"sudo dnf groupremove"
# Remove package group
alias
dnfp
=
"
${
dnfprog
}
info"
# Show package information
alias
dnfc
=
"sudo dnf clean all"
# Clean cache
alias
dnfs
=
"
${
dnfprog
}
search"
# Search package
alias
dnfu
=
"sudo
${
dnfprog
}
upgrade"
# Upgrade package
alias
dnfi
=
"sudo
${
dnfprog
}
install"
# Install package
alias
dnfgi
=
"sudo
${
dnfprog
}
groupinstall"
# Install package group
alias
dnfr
=
"sudo
${
dnfprog
}
remove"
# Remove package
alias
dnfgr
=
"sudo
${
dnfprog
}
groupremove"
# Remove package group
alias
dnfc
=
"sudo
${
dnfprog
}
clean all"
# Clean cache
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment