fix(dnf): 'dnfli' uses '--installed', supporting both dnf 4 and 5.

This commit is contained in:
Oliver Ruste Jahren 2026-05-25 16:56:02 +02:00
parent 43c68566be
commit 6fe52f6881
No known key found for this signature in database
GPG Key ID: 1619E1BBD5720868

View File

@ -5,7 +5,7 @@ local dnfprog="dnf"
command -v dnf5 > /dev/null && dnfprog=dnf5
alias dnfl="${dnfprog} list" # List packages
alias dnfli="${dnfprog} list installed" # List installed packages
alias dnfli="${dnfprog} list --installed" # List installed packages
alias dnfmc="${dnfprog} makecache" # Generate metadata cache
alias dnfp="${dnfprog} info" # Show package information
alias dnfs="${dnfprog} search" # Search package